diff --git a/src/tests/functional/shared_test_classes/src/base/layer_test_utils.cpp b/src/tests/functional/shared_test_classes/src/base/layer_test_utils.cpp index 66486df59a1ef1..5a3cf59f5ff4c9 100644 --- a/src/tests/functional/shared_test_classes/src/base/layer_test_utils.cpp +++ b/src/tests/functional/shared_test_classes/src/base/layer_test_utils.cpp @@ -24,6 +24,19 @@ LayerTestsCommon::LayerTestsCommon() : threshold(1e-2f), abs_threshold(-1.f) { } void LayerTestsCommon::Run() { + bool isCurrentTestDisabled = FuncTestUtils::SkipTestsConfig::currentTestIsDisabled(); + + ov::test::utils::PassRate::Statuses status = isCurrentTestDisabled ? + ov::test::utils::PassRate::Statuses::SKIPPED : + ov::test::utils::PassRate::Statuses::CRASHED; + + auto &s = ov::test::utils::OpSummary::getInstance(); + s.setDeviceName(targetDevice); + s.updateOPsStats(function, status); + + if (isCurrentTestDisabled) + GTEST_SKIP() << "Disabled test due to configuration" << std::endl; + if (functionRefs == nullptr) { functionRefs = ngraph::clone_function(*function); functionRefs->set_friendly_name("refFunction"); @@ -31,15 +44,6 @@ void LayerTestsCommon::Run() { // in case of crash jump will be made and work will be continued auto crashHandler = std::unique_ptr(new CommonTestUtils::CrashHandler()); - auto &s = ov::test::utils::OpSummary::getInstance(); - s.setDeviceName(targetDevice); - - if (FuncTestUtils::SkipTestsConfig::currentTestIsDisabled()) { - s.updateOPsStats(functionRefs, ov::test::utils::PassRate::Statuses::SKIPPED); - GTEST_SKIP() << "Disabled test due to configuration" << std::endl; - } else { - s.updateOPsStats(functionRefs, ov::test::utils::PassRate::Statuses::CRASHED); - } // place to jump in case of a crash int jmpRes = 0;