on master help sign in
Fix obelisk project tests

They weren't running in a temp directory

commit067024af33a450866d68f71890fb059569c308aa authorTom Smalley <tfsmalley@gmail.com> dateWed 24 Oct 2018, 13:20 (8 years ago) parentaed938c
1 file changed+3−3
lib/selftest/src/Obelisk/SelfTest.hs+3−3
lib/selftest/src/Obelisk/SelfTest.hs+3−3
@@ -135,9 +135,9 @@ main = do
135135 testObRunInDir (Just "frontend") httpManager
136136
137137 describe "obelisk project" $ do
138− it "can build obelisk command" $ shelly_ $ run "nix-build" ["-A", "command" , obeliskImpl]
139− it "can build obelisk skeleton" $ shelly_ $ run "nix-build" ["-A", "skeleton", obeliskImpl]
140− it "can build obelisk shell" $ shelly_ $ run "nix-build" ["-A", "shell", obeliskImpl]
138+ it "can build obelisk command" $ inTmpObInit $ \_ -> run "nix-build" ["-A", "command" , obeliskImpl]
139+ it "can build obelisk skeleton" $ inTmpObInit $ \_ -> run "nix-build" ["-A", "skeleton", obeliskImpl]
140+ it "can build obelisk shell" $ inTmpObInit $ \_ -> run "nix-build" ["-A", "shell", obeliskImpl]
141141 -- See https://github.com/obsidiansystems/obelisk/issues/101
142142 -- it "can build everything" $ shelly_ $ run "nix-build" [obeliskImpl]
143143