Skip to content

Commit

Permalink
Fixes testrun showing argv[0]
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Nov 24, 2014
1 parent 8081a2b commit c747b8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reprozip/reprozip/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def print_db(database):
if not argv[-1]:
argv = argv[:-1]
cmdline = ' '.join(shell_escape(a) for a in argv)
if argv[0] != os.path.basename(r_name):
if argv[0] not in (r_name, os.path.basename(r_name)):
cmdline = "(%s) %s" % (shell_escape(r_name), cmdline)
f_cmdline = " {0: <37s} ".format(cmdline)
print('|'.join(('', f_id, f_timestamp, f_proc, f_cmdline, '')))
Expand Down

0 comments on commit c747b8d

Please sign in to comment.