Skip to content

Commit

Permalink
DAOS-16000 test: fix get_host_log_files ignoring error (#14540)
Browse files Browse the repository at this point in the history
Test-tag: pr,vm
Skip-unit-tests: true
Skip-fault-injection-test: true

Redirect stderr to stdout so "grep -v <error>" works as expected.

Required-githooks: true

Signed-off-by: Dalton Bohning <dalton.bohning@intel.com>
  • Loading branch information
daltonbohning committed Jun 14, 2024
1 parent 9aa17e4 commit 826d8a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/ftest/util/server_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ def get_host_log_files(self):
file_search.append(".".join([log_file, pid]))
# Determine which of those log files actually do exist on this host
# This matches the engine pid to the engine log file name
command = f"ls -1 {' '.join(file_search)} | grep -v 'No such file or directory'"
command = f"ls -1 {' '.join(file_search)} 2>&1 | grep -v 'No such file or directory'"
result = run_remote(self.log, host, command, False)
for data in result.output:
for line in data.stdout:
Expand Down

0 comments on commit 826d8a1

Please sign in to comment.