mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
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:

committed by
Compute-Runtime-Automation

parent
7dc36ca422
commit
3e01915e61
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user