$TMP_DIRECTORY is a full path, while $test is not. --- test/test-lib-common.sh | 1 - test/test-lib.sh | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/test-lib-common.sh b/test/test-lib-common.sh index 5133917dae9a..5e53348a9438 100644 --- a/test/test-lib-common.sh +++ b/test/test-lib-common.sh @@ -329,7 +329,6 @@ mkdir -p "${HOME}" MAIL_DIR="${TMP_DIRECTORY}/mail" export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config" -mkdir -p "${test}" mkdir -p "${MAIL_DIR}" cat <<EOF >"${NOTMUCH_CONFIG}" diff --git a/test/test-lib.sh b/test/test-lib.sh index 5ccae7aea28b..0b4303f1d485 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -1066,7 +1066,7 @@ emacs_generate_script # Use -P to resolve symlinks in our working directory so that the cwd # in subprocesses like git equals our $PWD (for pathname comparisons). -cd -P "$test" || error "Cannot set up test environment" +cd -P "$TMP_DIRECTORY" || error "Cannot set up test environment" if test "$verbose" = "t" then -- 2.11.0 _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch