Skip tests that involve symbolic links.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
This commit is contained in:
Johannes Sixt
2008-12-22 16:08:58 +01:00
parent 6a0258722b
commit 2fb7da977b
2 changed files with 11 additions and 0 deletions

View File

@@ -24,6 +24,10 @@ test_cd_to_toplevel repo 'at physical root'
test_cd_to_toplevel repo/sub/dir 'at physical subdir'
if test "$no_symlinks"; then
say "symbolic links not supported - skipping tests"
else
ln -s repo symrepo
test_cd_to_toplevel symrepo 'at symbolic root'
@@ -34,4 +38,6 @@ cd repo
ln -s sub/dir internal-link
test_cd_to_toplevel internal-link 'at internal symbolic subdir'
fi # $no_symlinks
test_done

View File

@@ -4,6 +4,11 @@ test_description='pulling from symlinked subdir'
. ./test-lib.sh
if test "$no_symlinks"; then
say "symbolic links not supported - skipping tests"
test_done
fi
# The scenario we are building:
#
# trash\ directory/