Skip to content

Commit e70e10c

Browse files
authored
Merge pull request #117 from ax3l/opt-archive
Add `suite.archive_output` option
2 parents 71f6939 + 69f0ac0 commit e70e10c

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

regtest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1181,7 +1181,7 @@ def test_suite(argv):
11811181
except:
11821182
suite.log.warn(f"unable to remove {pfile}")
11831183

1184-
else:
1184+
elif suite.archive_output == 1:
11851185
# tar it up
11861186
try:
11871187
tar = tarfile.open(f"{pfile}.tgz", "w:gz")

suite.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,9 @@ def __init__(self, args):
462462
# this will be automatically filled
463463
self.extra_src_comp_string = ""
464464

465+
# archive output upon completion
466+
self.archive_output = 1
467+
465468
# delete all plot/checkfiles but the plotfile used for comparison upon
466469
# completion
467470
self.purge_output = 0

test_util.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@
4040
4141
add_to_c_make_command = < any additional defines to add to the make invocation for C_Src AMReX >
4242
43+
archive_output = <0: leave all plotfiles in place;
44+
1: tar plotfiles after compare (default) >
4345
purge_output = <0: leave all plotfiles in place;
4446
1: delete plotfiles after compare >
4547

0 commit comments

Comments
 (0)