From e74fed5c84b90ebdb59baf8400999e753cda4e16 Mon Sep 17 00:00:00 2001 From: dkurt Date: Wed, 21 Jun 2017 21:30:52 +0300 Subject: [PATCH] Catch SkipTestException in performance tests --- modules/ts/src/ts_perf.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/ts/src/ts_perf.cpp b/modules/ts/src/ts_perf.cpp index 6a41bc9823..e5a5e31324 100644 --- a/modules/ts/src/ts_perf.cpp +++ b/modules/ts/src/ts_perf.cpp @@ -1958,6 +1958,11 @@ void TestBase::RunPerfTestBody() implConf.GetImpl(); #endif } + catch(SkipTestException&) + { + metrics.terminationReason = performance_metrics::TERM_SKIP_TEST; + return; + } catch(PerfSkipTestException&) { metrics.terminationReason = performance_metrics::TERM_SKIP_TEST;