summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCheng Shao <cheng.shao@tweag.io>2021-09-28 19:04:22 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-11-12 21:22:39 -0500
commit4143bd21bbef16022628a4260d77a945523ce4b8 (patch)
tree308ae505611e21a1f69c2356628f9e1c7c4c2d3c
parentdfc4093ccb7c4b7402830ab7c715b55d90980af1 (diff)
downloadhaskell-4143bd21bbef16022628a4260d77a945523ce4b8.tar.gz
hadrian: use /bin/sh in timeout wrapper
/usr/bin/env doesn't work within a nix build.
-rw-r--r--hadrian/src/Rules/Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Test.hs b/hadrian/src/Rules/Test.hs
index 2653a3eb97..7739eb050a 100644
--- a/hadrian/src/Rules/Test.hs
+++ b/hadrian/src/Rules/Test.hs
@@ -214,7 +214,7 @@ timeoutProgBuilder = do
python <- builderPath Python
copyFile "testsuite/timeout/timeout.py" (root -/- timeoutPath <.> "py")
let script = unlines
- [ "#!/usr/bin/env sh"
+ [ "#!/bin/sh"
, "exec " ++ python ++ " $0.py \"$@\"" ]
writeFile' (root -/- timeoutPath) script
makeExecutable (root -/- timeoutPath)