Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suite.archive_output option #117

Merged
merged 1 commit into from
Jan 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 suite.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