1
0
Fork 0
mirror of synced 2024-06-18 21:51:10 -04:00

Add acceptance tests for white space alt paths (#36)

This commit is contained in:
Tim Byrne 2017-01-06 07:50:36 -06:00
parent fd77d024dd
commit 5107198422
No known key found for this signature in database
GPG key ID: 6CBE24C2FD8CF76E
2 changed files with 47 additions and 47 deletions

View file

@ -2,7 +2,7 @@ load common
load_fixtures
status=;output=; #; populated by bats run()
IN_REPO=(alt* dir1)
IN_REPO=(alt* "dir one")
setup() {
destroy_tmp
@ -33,8 +33,8 @@ function test_alt() {
link_match="$link_name##$T_SYS.$T_HOST.$T_USER"
;;
esac
dir_link_name="dir1/${link_name}"
dir_link_match="dir1/${link_match}"
dir_link_name="dir one/${link_name}"
dir_link_match="dir one/${link_match}"
if [ "$test_overwrite" = "true" ]; then
#; create incorrect links (to overwrite)

View file

@ -104,50 +104,50 @@ function create_worktree() {
"alt-user##S.H" \
"alt-user##S.H.U" \
"alt-user##$T_SYS.$T_HOST.$T_USER" \
"dir1/alt-none##S/file1" \
"dir1/alt-none##S/file2" \
"dir1/alt-none##S.H/file1" \
"dir1/alt-none##S.H/file2" \
"dir1/alt-none##S.H.U/file1" \
"dir1/alt-none##S.H.U/file2" \
"dir1/alt-base##/file1" \
"dir1/alt-base##/file2" \
"dir1/alt-base##S/file1" \
"dir1/alt-base##S/file2" \
"dir1/alt-base##S.H/file1" \
"dir1/alt-base##S.H/file2" \
"dir1/alt-base##S.H.U/file1" \
"dir1/alt-base##S.H.U/file2" \
"dir1/alt-system##/file1" \
"dir1/alt-system##/file2" \
"dir1/alt-system##S/file1" \
"dir1/alt-system##S/file2" \
"dir1/alt-system##S.H/file1" \
"dir1/alt-system##S.H/file2" \
"dir1/alt-system##S.H.U/file1" \
"dir1/alt-system##S.H.U/file2" \
"dir1/alt-system##$T_SYS/file1" \
"dir1/alt-system##$T_SYS/file2" \
"dir1/alt-host##/file1" \
"dir1/alt-host##/file2" \
"dir1/alt-host##S/file1" \
"dir1/alt-host##S/file2" \
"dir1/alt-host##S.H/file1" \
"dir1/alt-host##S.H/file2" \
"dir1/alt-host##S.H.U/file1" \
"dir1/alt-host##S.H.U/file2" \
"dir1/alt-host##$T_SYS.$T_HOST/file1" \
"dir1/alt-host##$T_SYS.$T_HOST/file2" \
"dir1/alt-user##/file1" \
"dir1/alt-user##/file2" \
"dir1/alt-user##S/file1" \
"dir1/alt-user##S/file2" \
"dir1/alt-user##S.H/file1" \
"dir1/alt-user##S.H/file2" \
"dir1/alt-user##S.H.U/file1" \
"dir1/alt-user##S.H.U/file2" \
"dir1/alt-user##$T_SYS.$T_HOST.$T_USER/file1" \
"dir1/alt-user##$T_SYS.$T_HOST.$T_USER/file2" \
"dir one/alt-none##S/file1" \
"dir one/alt-none##S/file2" \
"dir one/alt-none##S.H/file1" \
"dir one/alt-none##S.H/file2" \
"dir one/alt-none##S.H.U/file1" \
"dir one/alt-none##S.H.U/file2" \
"dir one/alt-base##/file1" \
"dir one/alt-base##/file2" \
"dir one/alt-base##S/file1" \
"dir one/alt-base##S/file2" \
"dir one/alt-base##S.H/file1" \
"dir one/alt-base##S.H/file2" \
"dir one/alt-base##S.H.U/file1" \
"dir one/alt-base##S.H.U/file2" \
"dir one/alt-system##/file1" \
"dir one/alt-system##/file2" \
"dir one/alt-system##S/file1" \
"dir one/alt-system##S/file2" \
"dir one/alt-system##S.H/file1" \
"dir one/alt-system##S.H/file2" \
"dir one/alt-system##S.H.U/file1" \
"dir one/alt-system##S.H.U/file2" \
"dir one/alt-system##$T_SYS/file1" \
"dir one/alt-system##$T_SYS/file2" \
"dir one/alt-host##/file1" \
"dir one/alt-host##/file2" \
"dir one/alt-host##S/file1" \
"dir one/alt-host##S/file2" \
"dir one/alt-host##S.H/file1" \
"dir one/alt-host##S.H/file2" \
"dir one/alt-host##S.H.U/file1" \
"dir one/alt-host##S.H.U/file2" \
"dir one/alt-host##$T_SYS.$T_HOST/file1" \
"dir one/alt-host##$T_SYS.$T_HOST/file2" \
"dir one/alt-user##/file1" \
"dir one/alt-user##/file2" \
"dir one/alt-user##S/file1" \
"dir one/alt-user##S/file2" \
"dir one/alt-user##S.H/file1" \
"dir one/alt-user##S.H/file2" \
"dir one/alt-user##S.H.U/file1" \
"dir one/alt-user##S.H.U/file2" \
"dir one/alt-user##$T_SYS.$T_HOST.$T_USER/file1" \
"dir one/alt-user##$T_SYS.$T_HOST.$T_USER/file2" \
"dir2/file2" \
.bash_profile \
.gnupg/gpg.conf \