Unverified Commit 72a66a48 authored by Robert Kimball's avatar Robert Kimball Committed by GitHub

allow for test exclusion to include backend name (#2622)

parent a8b789fc
......@@ -52,7 +52,9 @@ string ngraph::prepend_disabled(const string& backend_name,
}
}
}
if (blacklist.find(test_name) != blacklist.end())
string compound_test_name = backend_name + "." + test_name;
if (blacklist.find(test_name) != blacklist.end() ||
blacklist.find(compound_test_name) != blacklist.end())
{
rc = "DISABLED_" + test_name;
}
......
......@@ -120,7 +120,9 @@ namespace ngraph
::testing::internal::CodeLocation(__FILE__, __LINE__)) \
->AddTestPattern( \
#backend_name "/" #test_case_name, \
::ngraph::prepend_disabled(#test_case_name, #test_name, s_manifest).c_str(), \
::ngraph::prepend_disabled( \
#backend_name "/" #test_case_name, #test_name, s_manifest) \
.c_str(), \
new ::testing::internal::TestMetaFactory<NGRAPH_GTEST_TEST_CLASS_NAME_( \
backend_name, test_case_name, test_name)>()); \
return 0; \
......
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