]> git.notmuchmail.org Git - notmuch/blobdiff - test/test-lib.sh
test: remove --root option and fix TMP_DIRECTORY cleanup
[notmuch] / test / test-lib.sh
index e75f93b3dcab73a701559d006b72f958937ebf57..7926d27877102a0bc7a528dc40ec0438cf01d1f9 100644 (file)
@@ -160,9 +160,6 @@ do
                valgrind=t; verbose=t; shift ;;
        --tee)
                shift ;; # was handled already
-       --root=*)
-               root=$(expr "z$1" : 'z[^=]*=\(.*\)')
-               shift ;;
        *)
                echo "error: unknown test option '$1'" >&2; exit 1 ;;
        esac
@@ -1083,7 +1080,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