improve git-annex-shell exit status propigation
This commit is contained in:
parent
3cffb941d1
commit
df2639218a
1 changed files with 2 additions and 3 deletions
5
Test.hs
5
Test.hs
|
@ -2116,9 +2116,8 @@ setTestMode testmode = do
|
||||||
runFakeSsh :: [String] -> IO ()
|
runFakeSsh :: [String] -> IO ()
|
||||||
runFakeSsh ("-n":ps) = runFakeSsh ps
|
runFakeSsh ("-n":ps) = runFakeSsh ps
|
||||||
runFakeSsh (_host:cmd:[]) = do
|
runFakeSsh (_host:cmd:[]) = do
|
||||||
let p = shell cmd
|
(_, _, _, pid) <- createProcess (shell cmd)
|
||||||
(_, _, _, pid) <- createProcess p
|
exitWith =<< waitForProcess pid
|
||||||
forceSuccessProcess p pid
|
|
||||||
runFakeSsh ps = error $ "fake ssh option parse error: " ++ show ps
|
runFakeSsh ps = error $ "fake ssh option parse error: " ++ show ps
|
||||||
|
|
||||||
getTestMode :: IO TestMode
|
getTestMode :: IO TestMode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue