Skip to content

Commit

Permalink
mod:py:runner: print error message with log path when testcase fails
Browse files Browse the repository at this point in the history
  • Loading branch information
micvbang authored and safl committed Jul 29, 2021
1 parent 91aa7d3 commit ebcb144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/cij/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -837,6 +837,8 @@ def main(args, conf):
tcase.status = Status.Pass
if tcase.rcode is None or tcase.rcode:
tcase.status = Status.Fail
cij.err(f"main:{tcase.ident} failed.")
cij.err(f"See log: `less {tcase.log_fpath}`")

tsuite.progress[Status.Unkn] -= 1 # Update progress
tplan.progress[Status.Unkn] -= 1
Expand Down

0 comments on commit ebcb144

Please sign in to comment.