diff options
author | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-03 12:02:09 +0100 |
---|---|---|
committer | Ian Jackson <ijackson@chiark.greenend.org.uk> | 2015-05-31 11:54:10 +0100 |
commit | 6913c854ca0f3eb901c39c74b74d7f0344318f72 (patch) | |
tree | ca93d0a005b8a12088e5aef919bcb4e7de1271cf /tests/lib | |
parent | f6cd040652129d18f3d7fe53b6bb62e5d0c79ec1 (diff) |
Tests: break out some things into lib-core (nfc)
Diffstat (limited to 'tests/lib')
-rw-r--r-- | tests/lib | 15 |
1 files changed, 3 insertions, 12 deletions
@@ -3,13 +3,9 @@ exec 2>&1 set -x -if [ "x$DGIT_TEST_INTREE" != x ]; then - : ${DGIT_TEST:=$DGIT_TEST_INTREE/dgit} - : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/infra/dgit-repos-server} - : ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch} - : ${DGIT_INFRA_PFX:=$DGIT_TEST_INTREE${DGIT_TEST_INTREE:+/infra/}} - export DGIT_TEST DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST -fi +. tests/lib-core + +t-set-intree : ${DGIT_TEST_DEBUG:=-D} export DGIT_TEST_DEBUG @@ -45,11 +41,6 @@ incoming = $tmp/incoming run_dinstall = 0 END -fail () { - echo >&2 "failed: $*" - exit 1 -} - t-expect-fail () { local mpat="$1"; shift LC_MESSAGES=C "$@" 2>&1 | tee $tmp/t.output |