test: mkdir and cd to $TMP_DIRECTORY instead of $test for testing

$TMP_DIRECTORY is a full path, while $test is not.
This commit is contained in:
Jani Nikula 2017-09-25 23:38:26 +03:00 committed by David Bremner
parent 8e7fb88237
commit 8dfa116010
2 changed files with 1 additions and 2 deletions

View file

@ -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}"

View file

@ -1083,7 +1083,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