mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
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:
parent
8e7fb88237
commit
8dfa116010
2 changed files with 1 additions and 2 deletions
|
@ -329,7 +329,6 @@ mkdir -p "${HOME}"
|
||||||
MAIL_DIR="${TMP_DIRECTORY}/mail"
|
MAIL_DIR="${TMP_DIRECTORY}/mail"
|
||||||
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
export NOTMUCH_CONFIG="${TMP_DIRECTORY}/notmuch-config"
|
||||||
|
|
||||||
mkdir -p "${test}"
|
|
||||||
mkdir -p "${MAIL_DIR}"
|
mkdir -p "${MAIL_DIR}"
|
||||||
|
|
||||||
cat <<EOF >"${NOTMUCH_CONFIG}"
|
cat <<EOF >"${NOTMUCH_CONFIG}"
|
||||||
|
|
|
@ -1083,7 +1083,7 @@ emacs_generate_script
|
||||||
|
|
||||||
# Use -P to resolve symlinks in our working directory so that the cwd
|
# Use -P to resolve symlinks in our working directory so that the cwd
|
||||||
# in subprocesses like git equals our $PWD (for pathname comparisons).
|
# 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"
|
if test "$verbose" = "t"
|
||||||
then
|
then
|
||||||
|
|
Loading…
Reference in a new issue