Skip to content

Commit

Permalink
Add suite.archive_output option
Browse files Browse the repository at this point in the history
Make archiving optional.
Close 115
  • Loading branch information
ax3l committed Jan 15, 2022
1 parent 71f6939 commit 3a6bd99
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion regtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@ def test_suite(argv):
except:
suite.log.warn(f"unable to remove {pfile}")

else:
elif self.archive_output == 1:
# tar it up
try:
tar = tarfile.open(f"{pfile}.tgz", "w:gz")
Expand Down
3 changes: 3 additions & 0 deletions suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,9 @@ def __init__(self, args):
# this will be automatically filled
self.extra_src_comp_string = ""

# archive output upon completion
self.archive_output = 1

# delete all plot/checkfiles but the plotfile used for comparison upon
# completion
self.purge_output = 0
Expand Down
2 changes: 2 additions & 0 deletions test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
add_to_c_make_command = < any additional defines to add to the make invocation for C_Src AMReX >
archive_output = <0: leave all plotfiles in place;
1: tar plotfiles after compare (default) >
purge_output = <0: leave all plotfiles in place;
1: delete plotfiles after compare >
Expand Down

0 comments on commit 3a6bd99

Please sign in to comment.