Merge pull request #3236 from akva2/flag_error_single_rft
changed: flag an error if just one case has a rft file
This commit is contained in:
commit
8245d17026
@ -1044,9 +1044,9 @@ void ECLRegressionTest::results_rft()
|
||||
bool foundRft1 = checkFileName(rootName1, "RFT", fileName1);
|
||||
bool foundRft2 = checkFileName(rootName2, "RFT", fileName2);
|
||||
|
||||
if ((foundRft1) && (not foundRft2)){
|
||||
std::string message ="test case rft file " + rootName2 + ".RFT not found";
|
||||
std::cout << message << std::endl;
|
||||
if ((!foundRft1 && foundRft2) || (foundRft1 && !foundRft2)) {
|
||||
std::string message ="test case rft file " + (foundRft1 ? rootName1 : rootName2) + ".RFT not found";
|
||||
std::cout << message << std::endl;
|
||||
OPM_THROW(std::runtime_error, message);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user