make test: create virtualenv under /test/

instead of using build-root, use /test/venv directory for virtualenv
similarly, don't pollute build-root with test-built binaries

Change-Id: I1e63c04037eaee718b27b34ef16c9eb0252afa53
Signed-off-by: Klement Sekera <ksekera@cisco.com>
This commit is contained in:
Klement Sekera
2018-11-08 11:21:39 +01:00
committed by Damjan Marion
parent 040950a59d
commit b8c72a4a8d
13 changed files with 89 additions and 84 deletions

View File

@ -14,11 +14,11 @@ class VOMTestCase(VppTestCase):
def test_vom_cpp(self):
""" run C++ VOM tests """
var = "BR"
var = "TEST_DIR"
built_root = os.getenv(var, None)
self.assertIsNotNone(built_root,
"Environment variable `%s' not set" % var)
executable = "%s/vom_test/vom_test" % built_root
executable = "%s/build/vom_test/vom_test" % built_root
worker = Worker(
[executable, "vpp object model", self.shm_prefix], self.logger)
worker.start()