Update error reports from hnix-tests

This commit is contained in:
John Wiegley 2018-04-04 16:33:43 -07:00
parent 8ec43b5c50
commit 815748d8ac

View file

@ -15,11 +15,12 @@ main = do
langTestsEnv <- lookupEnv "LANGUAGE_TESTS"
let runLangTests = langTestsEnv == Just "yes"
when runLangTests $ do
files <- listDirectory "data/nix"
when (null files) $ error $ unlines
[ "Directory data/nix does not have any files."
, "Did you forget to run \"git submodule update --init --recursive\"?"
]
exist <- doesDirectoryExist "data/nix"
unless exist $
errorWithoutStackTrace $ unlines
[ "Directory data/nix does not have any files."
, "Did you forget to run \"git submodule update --init --recursive\"?"
]
defaultMain $ testGroup "hnix" $
[ ParserTests.tests
, EvalTests.tests