Skip to content

Commit 528e86c

Browse files
committed
Exclude the scratch directory contents from the test data deliverables.
1 parent 8372668 commit 528e86c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/imagesets/imgset.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,12 @@ def prdocs(self):
670670

671671
def tartests(self):
672672
"""
673-
Tar up test directories for delivery
673+
Tar up test directories for delivery. PGE has requested that
674+
the scratch directory contents be excluded from the deliveries.
675+
Include the scratch directories only as empty directories to
676+
maintain consistency with the runconfigs.
674677
"""
675678
for workflow in workflowtests:
676679
for test in workflowtests[workflow]:
677680
print(f"\ntarring workflow test {test}\n")
678-
subprocess.check_call(f"tar cvzf {test}.tar.gz {test}".split(), cwd=self.testdir)
681+
subprocess.check_call(f"tar cvz --exclude scratch*/* -f {test}.tar.gz {test}".split(), cwd=self.testdir)

0 commit comments

Comments
 (0)