From a477aa95b0bddccdf699121f1d2b799f20c0e294 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Fri, 29 Jan 2021 12:09:58 -0800 Subject: [PATCH] ;bin: ignore stderr in func tests, check only exit code This avoids failures when stack prints to stderr, eg when fetching hackage index. --- bin/scripts.test | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bin/scripts.test b/bin/scripts.test index b6f3a9eb8..ea844894b 100644 --- a/bin/scripts.test +++ b/bin/scripts.test @@ -9,10 +9,10 @@ # to avoid installing and building for multiple GHCs. # XXX it's actually too hard to make this reliable for CI right now. # Maybe still useful for running locally with "make functest". -$ stack ghc hledger-balance-as-budget.hs >/dev/null || true -$ stack ghc hledger-check-fancyassertions.hs >/dev/null || true -$ stack ghc hledger-check-tagfiles.hs >/dev/null || true -$ stack ghc hledger-combine-balances.hs >/dev/null || true -$ stack ghc --package string-qq hledger-print-location.hs >/dev/null || true -$ stack ghc --package string-qq hledger-smooth.hs >/dev/null || true -$ stack ghc --package string-qq hledger-swap-dates.hs >/dev/null || true +$ stack ghc hledger-balance-as-budget.hs >/dev/null 2>&1 || true +$ stack ghc hledger-check-fancyassertions.hs >/dev/null 2>&1 || true +$ stack ghc hledger-check-tagfiles.hs >/dev/null 2>&1 || true +$ stack ghc hledger-combine-balances.hs >/dev/null 2>&1 || true +$ stack ghc --package string-qq hledger-print-location.hs >/dev/null 2>&1 || true +$ stack ghc --package string-qq hledger-smooth.hs >/dev/null 2>&1 || true +$ stack ghc --package string-qq hledger-swap-dates.hs >/dev/null 2>&1 || true