Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changed: flag an error if just one case has a rft file #3236

Merged
merged 1 commit into from
Dec 2, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions test_util/EclRegressionTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down