lib/versioner: Test both spaces and parens in ext versioner paths

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3610
This commit is contained in:
Jakob Borg 2016-09-18 12:24:55 +00:00
parent 90c0a39df8
commit b371b1fe34
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
set FOLDER_PATH=%~1
set FILE_PATH=%~2
set "FOLDER_PATH=%~1"
set "FILE_PATH=%~2"
echo "1--%FOLDER_PATH%--"
echo "2--%FILE_PATH%--"
del "%FOLDER_PATH%\%FILE_PATH%"

View File

@ -48,7 +48,7 @@ func TestExternal(t *testing.T) {
cmd = `.\_external_test\external.bat`
}
file := "testdata/folder path/long filename.txt"
file := "testdata/folder path/dir (parens)/long filename (parens).txt"
prepForRemoval(t, file)
defer os.RemoveAll("testdata")