Skip to content

Commit

Permalink
Update CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
dustinswales committed May 21, 2024
1 parent 230fb35 commit bf5ab1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 8 additions & 2 deletions test/ci_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,21 @@ def main():
(build_type) = parse_args()

#
errmsgs=[]
for run in run_list:
case_tag = run["case"]+"_"+run["suite"]
file_out = "../scm/run/" + "output_"+case_tag+"/output.nc"
if exists(file_out):
os.system("mkdir -p artifact-"+build_type+"/"+case_tag+"/")
os.system("cp " + file_out + " artifact-"+build_type+"/"+case_tag+"/output.nc")
else:
print("FAIL: Could not copy output for baseline generation")
exit()
errmsgs.append("Could not copy output for baseline generation "+ case_tag)
# end if
# end for

for errmsg in errmsgs:
print(errmsg)
# end for

if __name__ == '__main__':
main()
4 changes: 0 additions & 4 deletions test/cmp_rt2bl.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,6 @@ def main():
# end if
# end for

# Bundle all plots into tarball for artifact in github action.
com = 'tar -cvf scm_rt_plots.tar scm_rt_out/*'
result = os.system(com)

#
if error_count == 0:
print("ALL TESTS PASSED, OUTPUT IS IDENTICAL.")
Expand Down

0 comments on commit bf5ab1d

Please sign in to comment.