[dts][PATCH V1] tests/pf_smoke: modify script when TG with Trex and SUT are the same server
Yu Jiang
yux.jiang at intel.com
Fri Jan 13 10:38:51 CET 2023
"TREX" directory also under /var/run/dpdk,
When TG with Trex and SUT are the same server,
Signed-off-by: Yu Jiang <yux.jiang at intel.com>
---
tests/TestSuite_pf_smoke.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/TestSuite_pf_smoke.py b/tests/TestSuite_pf_smoke.py
index 909c7e1b..19cac513 100644
--- a/tests/TestSuite_pf_smoke.py
+++ b/tests/TestSuite_pf_smoke.py
@@ -68,7 +68,7 @@ class TestPfSmoke(TestCase):
out = self.check_session.send_expect(
"ls -l /var/run/dpdk |awk '/^d/ {print $NF}'", "# ", 1
)
- if out == "" or "No such file or directory" in out:
+ if out == "" or out == 'TREX' or "No such file or directory" in out:
self.pf_launch_dpdk_app()
def pf_launch_dpdk_app(self):
--
2.25.1
More information about the dts
mailing list