From f1572715ae65e0f2eacb3bbfe03cf09ac0b811f2 Mon Sep 17 00:00:00 2001
From: Rosen Matev <rosen.matev@cern.ch>
Date: Mon, 21 Mar 2022 13:46:23 +0100
Subject: [PATCH] More fixes to tests

---
 .../qmtest/test_hlt2_flavourtagging_sspiontagger.qmt      | 8 ++++----
 Hlt/Hlt2Conf/tests/refs/empty.ref                         | 0
 .../refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref  | 1 -
 3 files changed, 4 insertions(+), 5 deletions(-)
 create mode 100644 Hlt/Hlt2Conf/tests/refs/empty.ref

diff --git a/Hlt/Hlt2Conf/tests/qmtest/test_hlt2_flavourtagging_sspiontagger.qmt b/Hlt/Hlt2Conf/tests/qmtest/test_hlt2_flavourtagging_sspiontagger.qmt
index 99bad5f8989..1be7ce61cf5 100644
--- a/Hlt/Hlt2Conf/tests/qmtest/test_hlt2_flavourtagging_sspiontagger.qmt
+++ b/Hlt/Hlt2Conf/tests/qmtest/test_hlt2_flavourtagging_sspiontagger.qmt
@@ -22,13 +22,13 @@ Check persist reco using real time reco.
 <argument name="reference"><text>../refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref</text></argument>
 <argument name="validator"><text>
 
-from Moore.qmtest.exclusions import remove_known_warnings
+from Moore.qmtest.exclusions import remove_known_warnings, ref_preprocessor
 countErrorLines({"FATAL": 0, "ERROR": 0},
                 stdout=remove_known_warnings(stdout))
 
-from Moore.qmtest.exclusions import skip_initialize, skip_scheduler, remove_known_fluctuating_counters                                                      
-from GaudiConf.QMTest.LHCbExclusions import preprocessor as LHCbPreprocessor                                                                                
-validateWithReference(preproc = skip_initialize + LHCbPreprocessor + skip_scheduler, counter_preproc = remove_known_fluctuating_counters)
+from Moore.qmtest.exclusions import skip_initialize, skip_scheduler, counter_preprocessor
+from GaudiConf.QMTest.LHCbExclusions import preprocessor as LHCbPreprocessor
+validateWithReference(preproc = ref_preprocessor + remove_known_warnings, counter_preproc = counter_preprocessor)
 
 </text></argument>
 </extension>
diff --git a/Hlt/Hlt2Conf/tests/refs/empty.ref b/Hlt/Hlt2Conf/tests/refs/empty.ref
new file mode 100644
index 00000000000..e69de29bb2d
diff --git a/Hlt/Hlt2Conf/tests/refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref b/Hlt/Hlt2Conf/tests/refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref
index 467d705ea8a..892d6a78edd 100644
--- a/Hlt/Hlt2Conf/tests/refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref
+++ b/Hlt/Hlt2Conf/tests/refs/hlt2_sspion_tagger_on_example_b2jpsik_lines.ref
@@ -1,4 +1,3 @@
-ApplicationMgr                         INFO Application Manager Stopped successfully
 CopyInputStream                        INFO Events output: 32
 ToolSvc                                INFO Removing all tools created by ToolSvc
 ApplicationMgr                         INFO Application Manager Finalized successfully
-- 
GitLab