chiark / gitweb /
test suite: Provide a stunt dgit
[dgit.git] / tests / tstunt / dgit
diff --git a/tests/tstunt/dgit b/tests/tstunt/dgit
new file mode 100755 (executable)
index 0000000..3a9751d
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+# NB This requires use of t-chain-test-somehow.
+set -ex
+oldpwd=$(pwd)
+cd "$DGIT_TEST_TROOT/.."
+. tests/lib
+cd "$oldpwd"
+trap '' EXIT # preserves our exit status
+t-dgit "$@"