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
592
592
fi
593
593
594
594
# 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 " ;;
600
600
esac
601
601
test ! -z " $debug " || remove_trash=$TRASH_DIRECTORY
602
- rm -fr " $test " || {
602
+ rm -fr " $TRASH_DIRECTORY " || {
603
603
GIT_EXIT_OK=t
604
604
echo >&5 " FATAL: Cannot prepare test area"
605
605
exit 1
@@ -610,13 +610,13 @@ export HOME
610
610
611
611
if test -z " $TEST_NO_CREATE_REPO "
612
612
then
613
- test_create_repo " $test "
613
+ test_create_repo " $TRASH_DIRECTORY "
614
614
else
615
- mkdir -p " $test "
615
+ mkdir -p " $TRASH_DIRECTORY "
616
616
fi
617
617
# Use -P to resolve symlinks in our working directory so that the cwd
618
618
# in subprocesses like git equals our $PWD (for pathname comparisons).
619
- cd -P " $test " || exit 1
619
+ cd -P " $TRASH_DIRECTORY " || exit 1
620
620
621
621
this_test=${0##*/ }
622
622
this_test=${this_test%% -* }
You can’t perform that action at this time.
0 commit comments