Add exclude support for hwtest_p tests

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
Kamil Kopryk
2022-04-20 11:56:52 +00:00
committed by Compute-Runtime-Automation
parent 8f38f4ee3c
commit e4437fcf54
2 changed files with 30 additions and 18 deletions

View File

@@ -412,7 +412,20 @@ extern GFXCORE_FAMILY renderCoreFamily;
void testBodyHw(); \
\
void TestBody() override { \
FAMILY_SELECTOR(::renderCoreFamily, testBodyHw) \
if (!IS_TEST_EXCLUDED(test_suite_name, test_name)) { \
FAMILY_SELECTOR(::renderCoreFamily, testBodyHw) \
} \
} \
void SetUp() override { \
if (IS_TEST_EXCLUDED(test_suite_name, test_name)) { \
GTEST_SKIP(); \
} \
test_suite_name::SetUp(); \
} \
void TearDown() override { \
if (!IS_TEST_EXCLUDED(test_suite_name, test_name)) { \
test_suite_name::TearDown(); \
} \
} \
\
private: \