diff --git a/tests/conftest.py b/tests/conftest.py index 47bf9369b452..af95f49794f0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -601,7 +601,7 @@ def restart(self) -> None: self.check_ready_status_and_init_db() def runcmd(self, cmd: str, include_stderr=True) -> Tuple[int, str]: - res = self.ctn.exec_run(cmd) + res = self.ctn.exec_run(cmd, stdout=True, stderr=include_stderr) exitcode = res.exit_code out = res.output.decode("utf-8") diff --git a/tests/test_storm_control.py b/tests/test_storm_control.py index 76deef926878..ec4da04917e0 100644 --- a/tests/test_storm_control.py +++ b/tests/test_storm_control.py @@ -211,7 +211,7 @@ def test_warm_restart_all_interfaces(self,dvs,testlog): dvs.warm_restart_swss("true") # freeze orchagent for warm restart - (exitcode, result) = dvs.runcmd("/usr/bin/orchagent_restart_check") + (exitcode, result) = dvs.runcmd("/usr/bin/orchagent_restart_check", include_stderr=False) assert result == "RESTARTCHECK succeeded\n" time.sleep(2)