Skip to content
Snippets Groups Projects
Commit 2b5e7af5 authored by Nico Vermaas's avatar Nico Vermaas
Browse files

fix test (and potential bug)

parent dff7f1e6
Branches
No related tags found
1 merge request!343added mechanism and structure to check if a task is a 'summary' task
Pipeline #73244 passed
...@@ -149,11 +149,15 @@ def check_if_summary(task): ...@@ -149,11 +149,15 @@ def check_if_summary(task):
for backward compatiblity reasons this is done very ugly, by looking if certain filenames contain the substring 'summary' for backward compatiblity reasons this is done very ugly, by looking if certain filenames contain the substring 'summary'
""" """
# look in the outputs.tar_archive # look in the outputs.tar_archive
try:
tars = task.outputs['tar_archive'] tars = task.outputs['tar_archive']
for tar in tars: for tar in tars:
if 'summary' in tar['basename']: if 'summary' in tar['basename']:
# a summary tarball was found, this task is a summary task # a summary tarball was found, this task is a summary task
return True return True
except:
# no 'tar_archive' was found
return False
return False return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment