Commit 938b756a authored by GILLES Sebastien's avatar GILLES Sebastien

#1248 Fix InputParameterList test.

parent 8b422589
......@@ -51,15 +51,15 @@ int main(int argc, char** argv)
decltype(auto) value = ipl::Extract<interp_type>::Value(input_parameter_data);
if (value != "${HOME}/Codes/MoReFEM/Data/Interpolation/Poromechanics/Identity_6x6.hhdata")
if (value != "${MOREFEM_ROOT}/Data/Interpolation/Poromechanics/Identity_6x6.hhdata")
throw Exception("Field related to interpolation file not read correctly.",
__FILE__, __LINE__);
decltype(auto) path = ipl::Extract<interp_type>::Path(input_parameter_data);
if (!Utilities::String::EndsWith(path, "Codes/MoReFEM/Data/Interpolation/Poromechanics/Identity_6x6.hhdata")
|| path.find("${HOME}") != std::string::npos)
if (!Utilities::String::EndsWith(path, "Data/Interpolation/Poromechanics/Identity_6x6.hhdata")
|| path.find("${MOREFEM_ROOT}") != std::string::npos)
throw Exception("Field related to interpolation file not read correctly regarding its environment variable.",
__FILE__, __LINE__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment