diff options
author | Joey Hess <joeyh@joeyh.name> | 2015-02-11 12:21:33 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2015-02-11 12:21:33 -0400 |
commit | a78f1374c045093f74c2b2a5f39577dc48eb87a0 (patch) | |
tree | ad4a26ca90a9a71ee03273bf667dfe6beeb4d0f9 /Test.hs | |
parent | 1366e7a8d4755b8e2dfea620ce3b32eaa2496b19 (diff) |
fix file:// url generation on windows in test
Diffstat (limited to 'Test.hs')
-rw-r--r-- | Test.hs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1361,10 +1361,11 @@ test_addurl :: Assertion test_addurl = intmpclonerepo $ do -- file:// only; this test suite should not hit the network f <- absPath "myurl" + let url = replace "\\" "/" ("file://" ++ dropDrive f) writeFile f "foo" - git_annex "addurl" ["file://" ++ f] @? "addurl failed on file:// url" + git_annex "addurl" [url] @? ("addurl failed on " ++ url) let dest = "addurlurldest" - git_annex "addurl" ["--file", dest, "file://" ++ f] @? "addurl failed on file:// url with --file" + git_annex "addurl" ["--file", dest, url] @? ("addurl failed on " ++ url ++ " with --file") doesFileExist dest @? (dest ++ " missing after addurl --file") -- This is equivilant to running git-annex, but it's all run in-process |