From 6646ed0fae2d07ebcf9c998012b1fea1d385a64a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 6 Jul 2019 18:43:22 +0100 Subject: 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 --- tests/tests/tagupl | 10 ++++++++-- 1 file 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 -- cgit v1.2.3