diff --git a/backends/bmv2/run-bmv2-ptf-test.py b/backends/bmv2/run-bmv2-ptf-test.py index e6f913cf0e6..a36b8d6e99f 100755 --- a/backends/bmv2/run-bmv2-ptf-test.py +++ b/backends/bmv2/run-bmv2-ptf-test.py @@ -256,7 +256,11 @@ def run_ptf(self, grpc_port: int, json_name: Path, info_name: Path) -> int: # Add the tools PTF folder to the python path, it contains the base test. pypath = ROOT_DIR.joinpath("tools/ptf") # Show list of the tests - test_list_cmd = f"ptf --pypath {pypath} --test-dir {self.options.testdir} --list" + test_list_cmd = ( + f"ptf --pypath {pypath} " + f"--log-file {self.options.testdir.joinpath('ptf.log')} " + f"--test-dir {self.options.testdir} --list" + ) returncode = self.bridge.ns_exec(test_list_cmd) if returncode != testutils.SUCCESS: return returncode