chiark / gitweb /
test suite: tagupl: Use a different strategy to avoid fsck fail
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 6 Jul 2019 17:07:36 +0000 (18:07 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 7 Jul 2019 10:18:16 +0000 (11:18 +0100)
This leaves us with a $p directory which is often convenient

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/tests/tagupl

index 756a2ef6cf6923b1db3d222dc4d7d44446531cb0..b4aa6ec9ac04dd96320bb339ef303eb37fe2e905 100755 (executable)
@@ -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