Skip to content

Commit a4ffffb

Browse files
author
Tom Barnes
committed
Keep last 10 integration test archives (instead of last 5).
1 parent 46b5482 commit a4ffffb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/integration-tests/bash/archive.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# archive.sh <source_dir> <target_dir>
77
# - internal helper method called by run.sh
88
# - archives directory ${1} into ${2}/IntSuite.TIMESTAMP.tar.gz
9-
# - deletes all but the 5 newest archives
9+
# - deletes all but the 10 newest archives
1010
# - this method doesn't have any configurable env vars
1111
#
1212

@@ -38,7 +38,7 @@ function archive {
3838
[ $? -eq 0 ] || fail "Could not archive, 'tar -czf $ARCHIVE $SOURCE_DIR' command failed: `cat $OUTFILE`"
3939
rm -f $OUTFILE
4040

41-
find $ARCHIVE_DIR -maxdepth 1 -name "IntSuite*tar.gz" | sort -r | awk '{ if (NR>5) print $NF }' | xargs rm -f
41+
find $ARCHIVE_DIR -maxdepth 1 -name "IntSuite*tar.gz" | sort -r | awk '{ if (NR>10) print $NF }' | xargs rm -f
4242

4343
trace Archived to \'$ARCHIVE\'.
4444
}

0 commit comments

Comments
 (0)