File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -592,14 +592,14 @@ then
592592fi
593593
594594# Test repository
595- test =" trash directory.$( basename " $0 " .sh) "
596- test -n " $root " && test =" $root /$test "
597- case " $test " in
598- /* ) TRASH_DIRECTORY= " $test " ;;
599- * ) TRASH_DIRECTORY=" $TEST_OUTPUT_DIRECTORY /$test " ;;
595+ TRASH_DIRECTORY =" trash directory.$( basename " $0 " .sh) "
596+ test -n " $root " && TRASH_DIRECTORY =" $root /$TRASH_DIRECTORY "
597+ case " $TRASH_DIRECTORY " in
598+ /* ) ;; # absolute path is good
599+ * ) TRASH_DIRECTORY=" $TEST_OUTPUT_DIRECTORY /$TRASH_DIRECTORY " ;;
600600esac
601601test ! -z " $debug " || remove_trash=$TRASH_DIRECTORY
602- rm -fr " $test " || {
602+ rm -fr " $TRASH_DIRECTORY " || {
603603 GIT_EXIT_OK=t
604604 echo >&5 " FATAL: Cannot prepare test area"
605605 exit 1
@@ -610,13 +610,13 @@ export HOME
610610
611611if test -z " $TEST_NO_CREATE_REPO "
612612then
613- test_create_repo " $test "
613+ test_create_repo " $TRASH_DIRECTORY "
614614else
615- mkdir -p " $test "
615+ mkdir -p " $TRASH_DIRECTORY "
616616fi
617617# Use -P to resolve symlinks in our working directory so that the cwd
618618# in subprocesses like git equals our $PWD (for pathname comparisons).
619- cd -P " $test " || exit 1
619+ cd -P " $TRASH_DIRECTORY " || exit 1
620620
621621this_test=${0##*/ }
622622this_test=${this_test%% -* }
You can’t perform that action at this time.
0 commit comments