aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/constants.py
diff options
context:
space:
mode:
authorMatus Fabian <matfabia@cisco.com>2016-03-16 12:42:28 +0100
committerGerrit Code Review <gerrit@fd.io>2016-03-24 11:25:51 +0000
commitbbef393dee133408378a5aee83c3844affc9afe3 (patch)
tree3a9fad0b9ad5c743e29a5b659d000145dcbccc8f /resources/libraries/python/constants.py
parentd8a4070100d7df60c0421c91a22b1bbebf6b8736 (diff)
Setup and run QEMU VM
Change-Id: I22640caa9f13be09d2a837c6332d7b86cef77efc Signed-off-by: Matus Fabian <matfabia@cisco.com>
Diffstat (limited to 'resources/libraries/python/constants.py')
0 files changed, 0 insertions, 0 deletions
quot;" @classmethod def setUpClass(cls): super(VOMTestCase, cls).setUpClass() @classmethod def tearDownClass(cls): super(VOMTestCase, cls).tearDownClass() def test_vom_cpp(self): """ run C++ VOM tests """ var = "TEST_DIR" built_root = os.getenv(var, None) self.assertIsNotNone(built_root, "Environment variable `%s' not set" % var) executable = "%s/build/vom_test/vom_test" % built_root worker = Worker( [executable, "vpp object model", self.shm_prefix], self.logger) worker.start() timeout = 120 worker.join(timeout) self.logger.info("Worker result is `%s'" % worker.result) error = False if worker.result is None: try: error = True self.logger.error( "Timeout! Worker did not finish in %ss" % timeout) os.killpg(os.getpgid(worker.process.pid), signal.SIGTERM) worker.join() except: raise Exception("Couldn't kill worker-spawned process") if error: raise Exception( "Timeout! Worker did not finish in %ss" % timeout) self.assert_equal(worker.result, 0, "Binary test return code") if __name__ == '__main__': unittest.main(testRunner=VppTestRunner)