Commit 200d65ef authored by Matthew Pickering's avatar Matthew Pickering Committed by Marge Bot

Check hadrian/ script output to determine pass/fail

ghci always exits with exit code 0 so you have to check the output
to see if the modules loaded succesfully.
parent d763b2e7
......@@ -149,8 +149,8 @@ hadrian-ghc-in-ghci:
- if [[ -d ./cabal-cache ]]; then cp -R ./.cabal-cache ~/.cabal-cache; fi
- ./boot
- ./configure $CONFIGURE_ARGS
# Load ghc-in-ghci then immediately exit
- echo ":q" | hadrian/
# Load ghc-in-ghci then immediately exit and check the modules loaded
- echo ":q" | hadrian/ | tail -n2 | grep "Ok,"
key: hadrian-ghci
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment