chiark / gitweb /
Avoid use of "my $_", which is not portable
[dgit.git] / tests / tests / push-newpackage
index 5d23faa..d0f3f35 100755 (executable)
@@ -8,9 +8,8 @@ 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