Commit afa969df authored by André Anjos's avatar André Anjos 💬

Fix error detection on parametric jobs

parent cefa9a90
......@@ -217,7 +217,7 @@ class Job:
start, stop, step = self.array
files = self.stderr_filename()
jobnames = [self.name(k) for k in range(start, stop+1, step)]
return tuple([check_file(*args) for args in zip(files, jobnames)])
return False not in [check_file(*args) for args in zip(files, jobnames)]
else:
return check_file(self.stderr_filename(), self.name())
......
......@@ -151,9 +151,11 @@ def explain(args):
J = jm[k[0]]
print "Job", J
print "Command line:", J.args, J.kwargs
print "%s stdout (%s)" % (J.name(k[1]), J.stdout_filename(k[1]))
print J.stdout(k[1])
print "%s stderr (%s)" % (J.name(k[1]), J.stderr_filename(k[1]))
if args.verbose:
print "%s stdout (%s)" % (J.name(k[1]), J.stdout_filename(k[1]))
print J.stdout(k[1])
if args.verbose:
print "%s stderr (%s)" % (J.name(k[1]), J.stderr_filename(k[1]))
print J.stderr(k[1])
def resubmit(args):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment