Skip to content

Commit 2a7f159

Browse files
committed
contest-hw: hw_worker: print a warn if no output was produced
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent d7d266b commit 2a7f159

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

contest/hw/lib/runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ def run_tests(test_dir, results_dir):
205205
retcode = ret.returncode
206206
stdout = ret.stdout.decode('utf-8', 'ignore')
207207
stderr = ret.stderr.decode('utf-8', 'ignore')
208+
if not stdout and not stderr:
209+
print(f"[{test_idx+1}/{len(tests)}] {test_name}: "
210+
f"no output (rc={retcode})")
208211
except subprocess.TimeoutExpired:
209212
retcode = 1
210213
stdout = ''

0 commit comments

Comments
 (0)