[V1] tests/pf_smoke: modify script when TG with Trex and SUT are the same server

Message ID 20230113093854.634776-2-yux.jiang@intel.com (mailing list archive)
State Superseded
Headers
Series [V1] tests/pf_smoke: modify script when TG with Trex and SUT are the same server |

Commit Message

Yu Jiang Jan. 13, 2023, 9:38 a.m. UTC
  "TREX" directory also under /var/run/dpdk, 
When TG with Trex and SUT are the same server, 

Signed-off-by: Yu Jiang <yux.jiang@intel.com>
---
 tests/TestSuite_pf_smoke.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

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):