Skip to content
Snippets Groups Projects
Commit ebcf5816 authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

fixed bug in run_many

parent 62e30ee9
No related branches found
No related tags found
1 merge request!23Resolve "HEPMC - Job Failed #34209"
This commit is part of merge request !23. Comments created here will be created in the context of that merge request.
...@@ -117,7 +117,7 @@ if __name__ == '__main__': ...@@ -117,7 +117,7 @@ if __name__ == '__main__':
## check if we all exited nicely, else exit with status 1 ## check if we all exited nicely, else exit with status 1
if not all(ret == 0 for ret in return_values): if not all(ret == 0 for ret in return_values):
n_fail = sum([1 for ret in return_values if ret != 0]) n_fail = sum([1 for ret in return_values if ret != 0])
print('ERROR, {} of {} jobs failed'.format(n_fail)) print('ERROR, {} of {} jobs failed'.format(n_fail), len(cmds))
print('Return values:', [ret for ret in return_values if ret != 0]) print('Return values:', [ret for ret in return_values if ret != 0])
exit(1) exit(1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment