-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shell: Use "cmd /q /c" on Windows, not "sh".
- Loading branch information
1 parent
8db4f81
commit 17c5874
Showing
8 changed files
with
67 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module Test.Smoke.Shell where | ||
|
||
import Control.Monad.Trans.Except (ExceptT) | ||
import Test.Smoke.Paths | ||
import Test.Smoke.Types | ||
|
||
defaultShellScriptName :: String | ||
defaultShellScriptName = "smoke.sh" | ||
|
||
defaultShell :: ExceptT PathError IO Shell | ||
defaultShell = do | ||
sh <- findExecutable $ parseFile "sh" | ||
return $ Shell sh mempty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
module Test.Smoke.Shell where | ||
|
||
import Control.Monad.Trans.Except (ExceptT) | ||
import qualified Data.Vector as Vector | ||
import Test.Smoke.Paths | ||
import Test.Smoke.Types | ||
|
||
defaultShellScriptName :: String | ||
defaultShellScriptName = "smoke.bat" | ||
|
||
defaultShell :: ExceptT PathError IO Shell | ||
defaultShell = do | ||
cmd <- findExecutable $ parseFile "cmd" | ||
let args = Args (Vector.fromList ["/q", "/c"]) | ||
return $ Shell cmd args |