File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ main = do
4646 env <- getEnvironment
4747 let mkTest = mkGoldenTest False env
4848 golden_tests_paths <- findByExtension [" .hdb-test" ] " test/golden"
49+ `catch` \ (e:: IOException ) -> do
50+ hPutStrLn stderr " -- !! ERROR !! -----------------------------------------------------------------"
51+ hPutStrLn stderr " Failed to find golden tests by `*.hdb-test` extension."
52+ hPutStrLn stderr " Make sure that the testsuite is being run from the project root (where the relative path `test/golden` is valid)."
53+ hPutStrLn stderr " --------------------------------------------------------------------------------"
54+ throwIO e
4955
5056 let internalOnlyTests = filter (\ p -> " .internal" `isSuffixOf` takeBaseName p) golden_tests_paths
5157 let externalOnlyTests = filter (\ p -> " .external" `isSuffixOf` takeBaseName p) golden_tests_paths
You can’t perform that action at this time.
0 commit comments