summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib16
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/lib b/tests/lib
index 4425bf6..40f1f09 100644
--- a/tests/lib
+++ b/tests/lib
@@ -420,20 +420,8 @@ t-save-artifacts () {
if [ x"$artifacts" = x ]; then return; fi
if [ x"tmp" = x ]; then return; fi
: '(((((((((( t-save-artifacts ))))))))))'
- cp -dR --preserve=links,timestamps "$tmp"/. "$artifacts"/.
- chmod -R a+r -- "$artifacts"/.
- cd "$artifacts"/.
- find . \( -name \*.tar -o -name \*.sample \) -print0 | \
- xargs -0r rm -v
- find . \( -name .git \
- -o -path ./salsa/\* \
- -o -path ./git/\*.git \
- \) -type d \
- \! -path '*/.git/*/.git' -exec sh -xec '
- cd "$1"
- "$2"/playtree-save-refs
- git gc --prune=all
- ' x '{}' "$troot" \;
+ GZIP=-1v tar -C "$tmp" -zc -f "$artifacts/${0##*/}.tar.gz" \
+ --exclude=\*.tar .
: ')))))))))) t-save-artifacts ))))))))))'
}