Update error reports from hnix-tests
This commit is contained in:
parent
8ec43b5c50
commit
815748d8ac
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue