From 5107198422f762a771eb6e447308cad8f3f2b57a Mon Sep 17 00:00:00 2001 From: Tim Byrne Date: Fri, 6 Jan 2017 07:50:36 -0600 Subject: [PATCH] Add acceptance tests for white space alt paths (#36) --- test/108_accept_alt.bats | 6 +-- test/common.bash | 88 ++++++++++++++++++++-------------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/test/108_accept_alt.bats b/test/108_accept_alt.bats index ffa29c5..f1f9341 100644 --- a/test/108_accept_alt.bats +++ b/test/108_accept_alt.bats @@ -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) diff --git a/test/common.bash b/test/common.bash index 70993ac..35c70f5 100644 --- a/test/common.bash +++ b/test/common.bash @@ -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 \