[V1] tests/pf_smoke: modify script when TG with Trex and SUT are the same server
Commit Message
"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(-)
@@ -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):