Skip to content

Commit

Permalink
mkclean: show only the return code on error
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Dec 27, 2024
1 parent 978faaf commit 4abb0bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkclean/regression/mkcleanreg.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def testFile(cli, line_num, src_file, mkclean_options, filesize, hash):
result = subprocess.run(mkclean_run)

if not result.returncode == 0:
print(f"Fail:3:{line_num}: mkclean returned {result} for {mkclean_options}", file=sys.stderr)
print(f"Fail:3:{line_num}: mkclean returned {result.returncode} for {mkclean_options}", file=sys.stderr)
return

if not os.path.isfile(outputfile):
Expand Down Expand Up @@ -117,7 +117,7 @@ def main():
if not line.startswith('#') and not line.strip() == '':
regression = line.split('\"')
src_file = regression[1]
mkclean_options = regression[3]
mkclean_options = regression[3].strip()
values = regression[4].strip().split()
filesize = int(values[0])
hash = values[1]
Expand Down

0 comments on commit 4abb0bb

Please sign in to comment.