diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-06 18:07:36 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2019-07-07 11:18:16 +0100 |
commit | 8a1666a19adc3568afc7c8679f866a02bbd66ad9 (patch) | |
tree | d161a2bdca903e4dbf52560d13ecbd5ef52bc9fd /tests | |
parent | 445b069db22353d0392c20c8f14ade9cdba24c25 (diff) |
test suite: tagupl: Use a different strategy to avoid fsck fail
This leaves us with a $p directory which is often convenient
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/tagupl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl index 756a2ef..b4aa6ec 100755 --- a/tests/tests/tagupl +++ b/tests/tests/tagupl @@ -85,8 +85,10 @@ tagname=test-dummy/$v expect-quit noplease s/please-upload/plunk/ 'tag missing please-upload' -# we do this now because we are about to generate a broken tag -t-fscks +# we are going to trash $p because it will contain corrupted objects +# which makes our end-of-test fsck fail +cp -al ../$p ../$p.save +cd ../$p next-mangle badtagger git cat-file tag test-dummy/1.0-1 | perl -pe ' @@ -99,5 +101,6 @@ git update-ref $tagname $(git hash-object -w -t tag ../tagobj-$ident) cd .. rm -rf $p +mv $p.save $p t-ok |