diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-13 11:38:36 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2018-07-13 11:38:37 +0100 |
commit | 3aa2ab5f285a1675dece0cd3b4f594e94b7ecb9e (patch) | |
tree | a3e3090e8fdbcc1b1f0dd8d2f104dc59ea8f13cd | |
parent | 33e55bfe2b24a2c67b8df06d980ab08fa078e99e (diff) |
test suite: tar up the artifacts, and name the tarball after the test
Naming the output after the test works around #903696.
tarring the whole lot up turns out to make it a lot smaller.
Before:
$ du -sk ; du -sk --apparent-size
1640 .
853 .
After:
236 .
235 .
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | tests/lib | 16 |
2 files changed, 9 insertions, 14 deletions
diff --git a/debian/changelog b/debian/changelog index f5078be..7f0c1ea 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +dgit (5.9+exp4~) experimental; urgency=medium + + * test suite: tar up the artifacts, and name the tarball after + the test (to work around #903696). + + -- Ian Jackson <ijackson@chiark.greenend.org.uk> Fri, 13 Jul 2018 11:38:25 +0100 + dgit (5.9+exp3) experimental; urgency=medium * test suite: chmod a+r $AUTOPKGTEST explicitly. @@ -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 ))))))))))' } |