summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-06 18:43:22 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-07 11:18:17 +0100
commit6646ed0fae2d07ebcf9c998012b1fea1d385a64a (patch)
tree4346705478daa10e52bdfb7a252acde2dfc639c1 /tests
parentfc46a9b33c6b82123721d6e025329717ae6c0e16 (diff)
test suite: tagupl: raw-mangled: Break out
No functional change. This test case is broken because it doesn't call t-tagupl-run-drs Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/tagupl10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/tests/tagupl b/tests/tests/tagupl
index 929153b..d79322f 100755
--- a/tests/tests/tagupl
+++ b/tests/tests/tagupl
@@ -46,6 +46,8 @@ perl -i -ne '
print or die $!;
' ../basetag
+git cat-file tag test-dummy/1.0-1 >../raw-base
+
mv-ident () {
local f=$tmp/$1
if test -e $f; then
@@ -85,6 +87,10 @@ expect-email () {
grep ": failed, emailed" ../tagupl/overall.log
}
+raw-mangled () {
+ git update-ref $tagname $(git hash-object -w -t tag ../tagobj-$ident)
+}
+
tagname=test-dummy/1.2
t-expect-fail E:'failed command: git fetch' \
t-tagupl-run-drs
@@ -126,13 +132,13 @@ cp -al ../$p ../$p.save
cd ../$p
next-mangle badtagger
-git cat-file tag test-dummy/1.0-1 | perl -pe '
+perl -pe <../raw-base '
s/\+\d+$/xyz/ if m/^tagger /;
exit 0 if m/^$/;
' >../tagobj-$ident
echo >>../tagobj-$ident
cat ../basetag >>../tagobj-$ident
-git update-ref $tagname $(git hash-object -w -t tag ../tagobj-$ident)
+raw-mangled
cd ..
rm -rf $p