improve handling of NEO_<x>_DISABLE_TEST_ALARM

Move env variable check to setAlarm function. This will help in
disabling test alarm across all test binaries.

Signed-off-by: Artur Harasimiuk <artur.harasimiuk@intel.com>
This commit is contained in:
Artur Harasimiuk
2022-09-21 17:30:22 +00:00
committed by Compute-Runtime-Automation
parent 7dc36ca422
commit 3e01915e61
3 changed files with 13 additions and 20 deletions

View File

@ -168,14 +168,6 @@ int main(int argc, char **argv) {
}
#endif
{
std::string envVar = std::string("NEO_") + executionName + "_DISABLE_TEST_ALARM";
char *envValue = getenv(envVar.c_str());
if (envValue != nullptr) {
enableAlarm = false;
}
}
::testing::InitGoogleTest(&argc, argv);
HardwareInfo hwInfoForTests = DEFAULT_TEST_PLATFORM::hwInfo;