summaryrefslogtreecommitdiffstats
path: root/test/test_vapi.py
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2021-05-25 18:29:24 +0200
committerDamjan Marion <dmarion@me.com>2021-05-26 06:32:43 +0000
commita2d6d352c6926d2f8d4e50aeb1ec59802f32b37b (patch)
tree9ad70d1cd520fd11e18928793f8ed14f24c50985 /test/test_vapi.py
parent6621abf49aec6d764e654316ff75274c75d4c1a1 (diff)
tests: move vapi C/C++ test files into src/
Type: improvement Change-Id: Iaad004661db1e9076e6c27227878f1612fa7289f Signed-off-by: Damjan Marion <damarion@cisco.com> Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'test/test_vapi.py')
-rw-r--r--test/test_vapi.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/test_vapi.py b/test/test_vapi.py
index d91099210d2..9b4cad090a0 100644
--- a/test/test_vapi.py
+++ b/test/test_vapi.py
@@ -20,11 +20,11 @@ class VAPITestCase(VppTestCase):
def test_vapi_c(self):
""" run C VAPI tests """
- var = "TEST_BR"
- built_root = os.getenv(var, None)
- self.assertIsNotNone(built_root,
+ var = "VPP_BUILD_DIR"
+ build_dir = os.getenv(var, None)
+ self.assertIsNotNone(build_dir,
"Environment variable `%s' not set" % var)
- executable = "%s/vapi_test/vapi_c_test" % built_root
+ executable = f"{build_dir}/vpp/bin/vapi_c_test"
worker = Worker([executable, "vapi client",
self.get_api_segment_prefix()], self.logger)
worker.start()
@@ -49,11 +49,11 @@ class VAPITestCase(VppTestCase):
def test_vapi_cpp(self):
""" run C++ VAPI tests """
- var = "TEST_BR"
- built_root = os.getenv(var, None)
- self.assertIsNotNone(built_root,
+ var = "VPP_BUILD_DIR"
+ build_dir = os.getenv(var, None)
+ self.assertIsNotNone(build_dir,
"Environment variable `%s' not set" % var)
- executable = "%s/vapi_test/vapi_cpp_test" % built_root
+ executable = f"{build_dir}/vpp/bin/vapi_cpp_test"
worker = Worker([executable, "vapi client",
self.get_api_segment_prefix()], self.logger)
worker.start()