chiark / gitweb /
test suite: Test ill-advised repeat dgit push after git push fails
[dgit.git] / tests / tests / push-newrepeat
diff --git a/tests/tests/push-newrepeat b/tests/tests/push-newrepeat
new file mode 100755 (executable)
index 0000000..87fcb35
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -e
+. tests/lib
+
+t-tstunt-parsechangelog
+
+t-prep-newpackage example 1.0
+
+cd $p
+git checkout quilt-tip
+cp $troot/pkg-srcs/${p}_1.0.orig.tar.gz ..
+
+t-dgit --quilt=smash build-source
+
+t-expect-fail E:'Push failed, while updating the remote git repository' \
+t-dgit -cdgit-distro.test-dummy.git-url=file:///dev/enoent/fail \
+       push --new
+
+t-dgit push --new
+
+t-ok