chiark / gitweb /
Avoid use of "my $_", which is not portable
[dgit.git] / tests / tests / push-newpackage
index 9954b3fc9fb424cc9a763fc795bced4743812210..d0f3f35a40d9927af72afb01fd3aa5c729836046 100755 (executable)
@@ -2,20 +2,14 @@
 set -e
 . tests/lib
 
-t-archive-none pari-extra
-t-git-none
-t-worktree 3-1
-v=3-1
-cd $p
-git branch -m dgit/sid master
-git remote rm dgit
+t-prep-newpackage pari-extra 3-1
 
+cd $p
 t-refs-same-start
 t-ref-head
 
-LANG=C t-dgit push 2>&1 \
-       | tee /dev/stderr \
-       | grep 'package appears to be new in this suite' >/dev/null
+t-expect-push-fail 'package appears to be new in this suite' \
+t-dgit push
 
 t-dgit build