hs-test: improved logging
- improved readability of some error messages
- printing container logs to stdout on test failure (last 20 lines)
Type: test
Change-Id: Idbb358bdd89aa7b1a6bdc9d96bf029d4c299ce64
Signed-off-by: adrianvillin <avillin@cisco.com>
diff --git a/extras/hs-test/suite_veth_test.go b/extras/hs-test/suite_veth_test.go
index de4812d..8593c88 100644
--- a/extras/hs-test/suite_veth_test.go
+++ b/extras/hs-test/suite_veth_test.go
@@ -36,8 +36,8 @@
serverContainer := s.getContainerByName("server-vpp")
cpus := s.AllocateCpus()
- serverVpp, _ := serverContainer.newVppInstance(cpus, sessionConfig)
- s.assertNotNil(serverVpp)
+ serverVpp, err := serverContainer.newVppInstance(cpus, sessionConfig)
+ s.assertNotNil(serverVpp, err)
s.setupServerVpp()
@@ -45,8 +45,8 @@
clientContainer := s.getContainerByName("client-vpp")
cpus = s.AllocateCpus()
- clientVpp, _ := clientContainer.newVppInstance(cpus, sessionConfig)
- s.assertNotNil(clientVpp)
+ clientVpp, err := clientContainer.newVppInstance(cpus, sessionConfig)
+ s.assertNotNil(clientVpp, err)
s.setupClientVpp()
}
@@ -57,7 +57,7 @@
serverVeth := s.netInterfaces[serverInterfaceName]
idx, err := serverVpp.createAfPacket(serverVeth)
- s.assertNil(err)
+ s.assertNil(err, err)
s.assertNotEqual(0, idx)
}
@@ -67,6 +67,6 @@
clientVeth := s.netInterfaces[clientInterfaceName]
idx, err := clientVpp.createAfPacket(clientVeth)
- s.assertNil(err)
+ s.assertNil(err, err)
s.assertNotEqual(0, idx)
}