diff --git a/test_util/EclRegressionTest.cpp b/test_util/EclRegressionTest.cpp index 750e33323cf..a17c70098d5 100644 --- a/test_util/EclRegressionTest.cpp +++ b/test_util/EclRegressionTest.cpp @@ -263,7 +263,7 @@ void ECLRegressionTest::printDeviationReport() void ECLRegressionTest::compareKeywords(const std::vector &keywords1, const std::vector &keywords2, const std::string &reference) { - if (!acceptExtraKeywords) { + if (!(acceptExtraKeywords or acceptExtraKeywordsBoth)) { if (keywords1 != keywords2) { std::cout << "not same keywords in " << reference << std::endl; diff --git a/test_util/EclRegressionTest.hpp b/test_util/EclRegressionTest.hpp index e1a9316371a..25df6fe8943 100644 --- a/test_util/EclRegressionTest.hpp +++ b/test_util/EclRegressionTest.hpp @@ -74,7 +74,6 @@ class ECLRegressionTest: public ECLFilesComparator { //Accept extra keywords in both simulations and compare only the keywords available in both runs void setAcceptExtraKeywordsBoth(bool acceptExtraKeywordsArg) { this->acceptExtraKeywordsBoth = acceptExtraKeywordsArg; - this->acceptExtraKeywords = acceptExtraKeywordsArg; } void setIntegrationTest(bool inregrationTestArg) {