summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-02-10 18:29:15 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-02-10 18:29:15 -0400
commitce1440413cb1d3b206e66d66f2581719cab3cf28 (patch)
tree14fa524e73857b8bf84aa64de6322b8c9f81598b /Test.hs
parent58aab73050a7866eda8a2378431e6104f9801910 (diff)
use nukefile rather than shelling to rm
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 7cbf6dbfd..f670b3744 100644
--- a/Test.hs
+++ b/Test.hs
@@ -230,7 +230,7 @@ test_add env = inmainrepo env $ do
( do
writeFile ingitfile $ content ingitfile
not <$> boolSystem "git" [Param "add", File ingitfile] @? "git add failed to fail in direct mode"
- boolSystem "rm" [Params "-f", File ingitfile] @? "rm failed"
+ nukeFile ingitfile
git_annex env "sync" [] @? "sync failed"
, do
writeFile ingitfile $ content ingitfile