diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-17 15:37:07 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2016-07-31 22:55:01 +0100 |
commit | 8eb4d3531c65dc7afa2bbfe56d535faa756da073 (patch) | |
tree | 9f70408170cfc0712d6fee9ea960466668b19391 /tests/tests/drs-push-rejects | |
parent | 8a178bf100d49ad948f5f3ec5540da1ff9c74c3e (diff) |
Tag change: Test suite: Introduce $tagpfx
Currently this is `test-dummy' (the distro the tests work with).
Have checked that after this commit
find tests -type f | xargs perl -i~ -pe 's/\$tagpfx/test-dummy/g'
puts everything back. (This does not prove I have changed the right
set of occurrences, but it does suggest that each actual change is
good.)
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests/tests/drs-push-rejects')
-rwxr-xr-x | tests/tests/drs-push-rejects | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index 1a57374..e4cf944 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -31,7 +31,7 @@ prep () { cp $tmp/masters/* $tmp/. tag_signer='-u Senatus' tag_message="$p release $version for $suite ($csuite) [dgit]" - tag_name=test-dummy/$version + tag_name=$tagpfx/$version push_spec1="HEAD:refs/dgit/$csuite" push_spec2="refs/tags/$tag_name" push_spec="$push_spec1 $push_spec2" @@ -102,7 +102,7 @@ mustfail 'push is missing tag ref update' $push_spec1 mustfail 'push is missing head ref update' +$push_spec2 mustfail 'pushing unexpected ref' $push_spec HEAD:refs/wombat mustfail 'pushing multiple heads' $push_spec HEAD:refs/dgit/wombat -mustfail 'pushing multiple tags' $push_spec HEAD:refs/tags/test-dummy/wombat +mustfail 'pushing multiple tags' $push_spec HEAD:refs/tags/$tagpfx/wombat prep unstable sid mktag @@ -129,11 +129,11 @@ mktag HEAD~: mustfail 'tag refers to wrong kind of object' $push_spec prep unstable sid -tag_name=test-dummy/wombat +tag_name=$tagpfx/wombat mktag -#git update-ref test-dummy/$version test-dummy/wombat +#git update-ref $tagpfx/$version $tagpfx/wombat mustfail 'tag name in tag is wrong' \ - refs/tags/test-dummy/wombat:refs/tags/test-dummy/$version $push_spec1 + refs/tags/$tagpfx/wombat:refs/tags/$tagpfx/$version $push_spec1 prep unstable sid mktag |