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:
Arne Morten Kvarving 2022-12-02 11:05:23 +01:00 committed by GitHub
commit 8245d17026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}