Skip to content

Commit

Permalink
[vstest] Only collect stdout of orchagent_restart_check in vstest (#2597
Browse files Browse the repository at this point in the history
)

* Only collect stdout of orchagent_restart_check in vstest
  • Loading branch information
bingwang-ms authored Jan 4, 2023
1 parent 1dab495 commit f496ab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
2 changes: 1 addition & 1 deletion tests/test_storm_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit f496ab3

Please sign in to comment.