Skip to content
Snippets Groups Projects
Commit 43d80ed0 authored by Dmitry Yu. Naumov's avatar Dmitry Yu. Naumov
Browse files

[App] Abort if no files were found for test defs.

This can happen if the regex does not match any of the files
in the reference solutions directory.
parent 17088d7c
No related branches found
No related tags found
No related merge requests found
......@@ -204,6 +204,15 @@ TestDefinition::TestDefinition(BaseLib::ConfigTree const& config_tree,
filenames.push_back(filename);
}
if (empty(filenames))
{
OGS_FATAL(
"No files from test definitions were added for tests but {} "
"{:s} specified.",
size(vtkdiff_configs),
(size(vtkdiff_configs) == 1 ? "test was" : "tests were"));
}
auto const absolute_tolerance =
//! \ogs_file_param{prj__test_definition__vtkdiff__absolute_tolerance}
vtkdiff_config.getConfigParameter<std::string>("absolute_tolerance",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment