X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2Fexport-dirs.sh;h=9bc99a2cf3588fcb2dbc3ac32933b9e425ebd7f6;hb=HEAD;hp=0a048e1fe66940b914182c78400ad4dea8a8a94c;hpb=3df2281746d57abbb45790ecb432ef40533c30bc;p=notmuch diff --git a/test/export-dirs.sh b/test/export-dirs.sh index 0a048e1f..9bc99a2c 100644 --- a/test/export-dirs.sh +++ b/test/export-dirs.sh @@ -24,7 +24,7 @@ find_builddir () { if [[ -z "${NOTMUCH_BUILDDIR}" ]]; then export NOTMUCH_BUILDDIR="$(find_builddir "$(pwd)")" - if [[ -z "${NOTMUCH_BUILDDIR}" ]]; then + if [ -z "${NOTMUCH_BUILDDIR}" -a "${NOTMUCH_TEST_INSTALLED-0}" = "0" ]; then echo "Run tests in a subdir of built notmuch tree." >&2 exit 1 fi