From ceab25220bf4f2593ac544e13076d0bbc4ab9f9e Mon Sep 17 00:00:00 2001
From: Chitsanu Khurewathanakul <chitsanu.khurewathanakul@cern.ch>
Date: Tue, 10 Oct 2017 16:47:43 +0200
Subject: [PATCH] split and fix instantiation tests

---
 .../build-streams.qms/stripping21r0p1.qmt     |   6 +
 .../build-streams.qms/stripping21r1p1.qmt     |   6 +
 .../build-streams.qms/stripping24r0p1.qmt     |   6 +
 .../qmtest/build-streams.qms/stripping26.qmt  |   6 +
 .../qmtest/build-streams.qms/stripping28.qmt  |   6 +
 .../qmtest/build-streams.qms/stripping29.qmt  |   6 +
 .../build-streams.qms/stripping29r1.qmt       |   6 +
 .../refs/build-streams/stripping21r0p1.ref    |  47 ++++
 .../refs/build-streams/stripping21r1p1.ref    |  48 ++++
 .../refs/build-streams/stripping24r0p1.ref    |  32 +++
 .../tests/refs/build-streams/stripping26.ref  |  33 +++
 .../tests/refs/build-streams/stripping28.ref  |  43 +++
 .../tests/refs/build-streams/stripping29.ref  |  25 ++
 .../refs/build-streams/stripping29r1.ref      |  25 ++
 .../refs/build-streams/stripping29r1.ref.new  |  25 ++
 .../tests/refs/instantiate-all-strip.ref      | 251 +-----------------
 .../tests/test_all_stripping_instantiation.py |  28 +-
 .../tests/test_build_streams.py               |  11 +
 18 files changed, 348 insertions(+), 262 deletions(-)
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r0p1.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r1p1.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping24r0p1.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping26.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping28.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29.qmt
 create mode 100755 Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29r1.qmt
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping21r0p1.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping21r1p1.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping24r0p1.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping26.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping28.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping29.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref
 create mode 100644 Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref.new
 create mode 100755 Phys/StrippingArchive/tests/test_build_streams.py

diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r0p1.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r0p1.qmt
new file mode 100755
index 000000000..8c051239c
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r0p1.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping21r0p1</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping21r0p1.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r1p1.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r1p1.qmt
new file mode 100755
index 000000000..d73ff7db9
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping21r1p1.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping21r1p1</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping21r1p1.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping24r0p1.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping24r0p1.qmt
new file mode 100755
index 000000000..908280b5e
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping24r0p1.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping24r0p1</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping24r0p1.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping26.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping26.qmt
new file mode 100755
index 000000000..65ac33217
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping26.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping26</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping26.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping28.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping28.qmt
new file mode 100755
index 000000000..c8b3b2fae
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping28.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping28</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping28.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29.qmt
new file mode 100755
index 000000000..e99ba8b2a
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping29</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping29.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29r1.qmt b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29r1.qmt
new file mode 100755
index 000000000..fd9b4fd2c
--- /dev/null
+++ b/Phys/StrippingArchive/tests/qmtest/build-streams.qms/stripping29r1.qmt
@@ -0,0 +1,6 @@
+<?xml version="1.0" ?><!DOCTYPE extension  PUBLIC '-//QM/2.3/Extension//EN'  'http://www.codesourcery.com/qm/dtds/2.3/-//qm/2.3/extension//en.dtd'>
+<extension class="GaudiTest.GaudiExeTest" kind="test">
+  <argument name="program"><text>../test_build_streams.py</text></argument>
+  <argument name="args"><set><text>stripping29r1</text></set></argument>
+  <argument name="reference"><text>../refs/build-streams/stripping29r1.ref</text></argument>
+</extension>
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping21r0p1.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping21r0p1.ref
new file mode 100644
index 000000000..955a0ded9
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping21r0p1.ref
@@ -0,0 +1,47 @@
+Requested Stripping21r0p1
+Trying to import module StrippingArchive.Stripping21r0p1
+Creating Bhadron stream with 274 lines
+Creating Semileptonic stream with 38 lines
+Creating BhadronCompleteEvent stream with 15 lines
+# WARNING: Line StrippingB02DsstarKDsstar2DGammaD2HHHBeauty2CharmLine has prescale <= 0, it will be removed from stream BhadronCompleteEvent
+Creating Dimuon stream with 13 lines
+# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Dimuon
+Creating PID stream with 13 lines
+Creating CharmCompleteEvent stream with 6 lines
+Creating Charm stream with 94 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 12 lines
+Creating Leptonic stream with 110 lines
+# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGammapi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma4pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_2Ks_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGammapi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBs2JPsiPhiLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBs2KKLTUBLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesSSLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBd2JPsiKstLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesLTUBLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Leptonic
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping21r1p1.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping21r1p1.ref
new file mode 100644
index 000000000..60f6ec500
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping21r1p1.ref
@@ -0,0 +1,48 @@
+Requested Stripping21r1p1
+Stripping21r1p1 is a duplicate of Stripping21r0p1
+Trying to import module StrippingArchive.Stripping21r0p1
+Creating Bhadron stream with 274 lines
+Creating Semileptonic stream with 38 lines
+Creating BhadronCompleteEvent stream with 15 lines
+# WARNING: Line StrippingB02DsstarKDsstar2DGammaD2HHHBeauty2CharmLine has prescale <= 0, it will be removed from stream BhadronCompleteEvent
+Creating Dimuon stream with 13 lines
+# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Dimuon
+Creating PID stream with 13 lines
+Creating CharmCompleteEvent stream with 6 lines
+Creating Charm stream with 94 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 12 lines
+Creating Leptonic stream with 110 lines
+# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGammapi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma4pi_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_2Ks_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGammapi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma2pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBeauty2XGamma3pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBs2JPsiPhiLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBs2KKLTUBLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesSSLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBd2JPsiKstLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesLTUBLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Leptonic
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping24r0p1.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping24r0p1.ref
new file mode 100644
index 000000000..d6d7985bd
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping24r0p1.ref
@@ -0,0 +1,32 @@
+Requested Stripping24r0p1
+Trying to import module StrippingArchive.Stripping24r0p1
+# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+Creating Bhadron stream with 338 lines
+# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
+Creating Semileptonic stream with 17 lines
+Creating BhadronCompleteEvent stream with 21 lines
+Creating Dimuon stream with 26 lines
+Creating Radiative stream with 7 lines
+Creating CharmCompleteEvent stream with 19 lines
+Creating Charm stream with 146 lines
+Creating EW stream with 45 lines
+Creating Leptonic stream with 150 lines
+# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2eMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2heMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVTau2MuEtaP2pipigLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingLFVTau2MuEtaP2pipipiLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBu2LLK_mtLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBu2LLK_mtSSLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBu2LLK_eeLine3 has prescale <= 0, it will be removed from stream Leptonic
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping26.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping26.ref
new file mode 100644
index 000000000..585eaf54c
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping26.ref
@@ -0,0 +1,33 @@
+Requested Stripping26
+Trying to import module StrippingArchive.Stripping26
+# WARNING: lineMBNoBias uses plain Gaudi configurable MBNoBiasORL. Consider using Selection instead!
+# WARNING: lineHlt1L0AnyRateLimited uses plain Gaudi configurable Hlt1L0AnyRateLimitedORL. Consider using Selection instead!
+Creating Bhadron stream with 780 lines
+Creating Semileptonic stream with 59 lines
+Creating BhadronCompleteEvent stream with 75 lines
+Creating Calibration stream with 3 lines
+Creating Dimuon stream with 55 lines
+Creating Radiative stream with 3 lines
+Creating CharmCompleteEvent stream with 18 lines
+Creating Charm stream with 241 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingD2hhPromptD2KPiLine has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 123 lines
+# WARNING: Line StrippingL0DiHadronLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0DiEMLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0PhotonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0DiMuonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0MuonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0ElectronLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HH_mediumPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HHHH_mediumPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HH_heavyPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HHHH_heavyPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTechnicalLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTMP1Line has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTMP2Line has prescale <= 0, it will be removed from stream EW
+Creating MiniBias stream with 4 lines
+Creating Leptonic stream with 190 lines
+# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
+# WARNING: Line StrippingBu2LLK_mtLine has prescale <= 0, it will be removed from stream Leptonic
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping28.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping28.ref
new file mode 100644
index 000000000..b74610987
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping28.ref
@@ -0,0 +1,43 @@
+Requested Stripping28
+Trying to import module StrippingArchive.Stripping28
+# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineMBNoBias uses plain Gaudi configurable MBNoBiasORL. Consider using Selection instead!
+Creating Bhadron stream with 993 lines
+# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
+Creating Semileptonic stream with 70 lines
+Creating BhadronCompleteEvent stream with 90 lines
+Creating Leptonic stream with 213 lines
+# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
+Creating PID stream with 2 lines
+Creating Dimuon stream with 58 lines
+Creating Calibration stream with 24 lines
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Calibration
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Calibration
+Creating Radiative stream with 9 lines
+Creating Charm stream with 252 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 139 lines
+# WARNING: Line StrippingL0DiHadronLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0DiEMLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0PhotonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0DiMuonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0MuonLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingL0ElectronLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HH_mediumPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HHHH_mediumPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HH_heavyPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultLMR2HHHH_heavyPSLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTechnicalLine has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTMP1Line has prescale <= 0, it will be removed from stream EW
+# WARNING: Line StrippingLowMultTMP2Line has prescale <= 0, it will be removed from stream EW
+Creating MiniBias stream with 3 lines
+Creating CharmCompleteEvent stream with 23 lines
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping29.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping29.ref
new file mode 100644
index 000000000..ca141df35
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping29.ref
@@ -0,0 +1,25 @@
+Requested Stripping29
+Trying to import module StrippingArchive.Stripping29
+# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+Creating Bhadron stream with 1011 lines
+# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
+Creating Semileptonic stream with 70 lines
+Creating BhadronCompleteEvent stream with 88 lines
+Creating Leptonic stream with 238 lines
+# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
+Creating Dimuon stream with 63 lines
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Dimuon
+Creating Charm stream with 258 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 85 lines
+Creating CharmCompleteEvent stream with 38 lines
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref b/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref
new file mode 100644
index 000000000..70b232586
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref
@@ -0,0 +1,25 @@
+Requested Stripping29r1
+Trying to import module StrippingArchive.Stripping29r1
+# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+Creating Bhadron stream with 1011 lines
+# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
+Creating Semileptonic stream with 70 lines
+Creating BhadronCompleteEvent stream with 88 lines
+Creating Leptonic stream with 238 lines
+# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
+Creating Dimuon stream with 63 lines
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Dimuon
+Creating Charm stream with 258 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 85 lines
+Creating CharmCompleteEvent stream with 38 lines
diff --git a/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref.new b/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref.new
new file mode 100644
index 000000000..70b232586
--- /dev/null
+++ b/Phys/StrippingArchive/tests/refs/build-streams/stripping29r1.ref.new
@@ -0,0 +1,25 @@
+Requested Stripping29r1
+Trying to import module StrippingArchive.Stripping29r1
+# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
+Creating Bhadron stream with 1011 lines
+# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
+# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
+Creating Semileptonic stream with 70 lines
+Creating BhadronCompleteEvent stream with 88 lines
+Creating Leptonic stream with 238 lines
+# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
+Creating Dimuon stream with 63 lines
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Dimuon
+# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Dimuon
+Creating Charm stream with 258 lines
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
+# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
+Creating EW stream with 85 lines
+Creating CharmCompleteEvent stream with 38 lines
diff --git a/Phys/StrippingArchive/tests/refs/instantiate-all-strip.ref b/Phys/StrippingArchive/tests/refs/instantiate-all-strip.ref
index fc1462bce..3e4c6a82e 100644
--- a/Phys/StrippingArchive/tests/refs/instantiate-all-strip.ref
+++ b/Phys/StrippingArchive/tests/refs/instantiate-all-strip.ref
@@ -1,5 +1,5 @@
 RelInfo-obsolete strippings are
-['Stripping13', 'Stripping14', 'Stripping15', 'Stripping16', 'Stripping17', 'Stripping17b', 'PreStripping18', 'Stripping18', 'Stripping19', 'Stripping19b', 'Stripping19c', 'Stripping20', 'Stripping20r1', 'Stripping20r0p1', 'Stripping20r0p2', 'Stripping20r0p3', 'Stripping20r2', 'Stripping20r3', 'Stripping21', 'Stripping23', 'Stripping23r1', 'Stripping24']
+['PreStripping18', 'Stripping13', 'Stripping14', 'Stripping15', 'Stripping16', 'Stripping17', 'Stripping17b', 'Stripping18', 'Stripping19', 'Stripping19b', 'Stripping19c', 'Stripping20', 'Stripping20r0p1', 'Stripping20r0p2', 'Stripping20r0p3', 'Stripping20r1', 'Stripping20r2', 'Stripping20r3', 'Stripping21', 'Stripping23', 'Stripping23r1', 'Stripping24']
 Trying to import module StrippingArchive.PreStripping18
   -> Cannot be loaded with this version of DaVinci (cannot import name PatDownstream)
 Trying to import module StrippingArchive.Stripping13
@@ -55,251 +55,6 @@ Trying to import module StrippingArchive.Stripping27
   -> Cannot be loaded with this version of DaVinci (cannot import name PatDownstream)
 Trying to import module StrippingArchive.Stripping28
 Trying to import module StrippingArchive.Stripping29
+Trying to import module StrippingArchive.Stripping29r1
 looping over:
-['Stripping21r0p1', 'Stripping24r0p1', 'Stripping26', 'Stripping28', 'Stripping29', 'Stripping21r1p1']
-=============================================
-Stripping21r0p1 :
-=============================================
-Requested Stripping21r0p1
-Trying to import module StrippingArchive.Stripping21r0p1
-Creating Bhadron stream with 274 lines
-Creating Semileptonic stream with 38 lines
-Creating BhadronCompleteEvent stream with 15 lines
-# WARNING: Line StrippingB02DsstarKDsstar2DGammaD2HHHBeauty2CharmLine has prescale <= 0, it will be removed from stream BhadronCompleteEvent
-Creating Dimuon stream with 13 lines
-# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Dimuon
-# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Dimuon
-# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Dimuon
-Creating PID stream with 13 lines
-Creating CharmCompleteEvent stream with 6 lines
-Creating Charm stream with 94 lines
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
-Creating EW stream with 12 lines
-Creating Leptonic stream with 110 lines
-# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGammapi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma4pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_2Ks_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGammapi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBs2JPsiPhiLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBs2KKLTUBLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesSSLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBd2JPsiKstLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesLTUBLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Leptonic
-=============================================
-Stripping24r0p1 :
-=============================================
-Requested Stripping24r0p1
-Trying to import module StrippingArchive.Stripping24r0p1
-# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-Creating Bhadron stream with 338 lines
-# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
-Creating Semileptonic stream with 17 lines
-Creating BhadronCompleteEvent stream with 21 lines
-Creating Dimuon stream with 26 lines
-Creating Radiative stream with 7 lines
-Creating CharmCompleteEvent stream with 19 lines
-Creating Charm stream with 146 lines
-Creating EW stream with 45 lines
-Creating Leptonic stream with 150 lines
-# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2eMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2heMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVTau2MuEtaP2pipigLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVTau2MuEtaP2pipipiLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBu2LLK_mtLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBu2LLK_mtSSLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBu2LLK_eeLine3 has prescale <= 0, it will be removed from stream Leptonic
-=============================================
-Stripping26 :
-=============================================
-Requested Stripping26
-Trying to import module StrippingArchive.Stripping26
-# WARNING: lineMBNoBias uses plain Gaudi configurable MBNoBiasORL. Consider using Selection instead!
-# WARNING: lineHlt1L0AnyRateLimited uses plain Gaudi configurable Hlt1L0AnyRateLimitedORL. Consider using Selection instead!
-Creating Bhadron stream with 780 lines
-Creating Semileptonic stream with 59 lines
-Creating BhadronCompleteEvent stream with 75 lines
-Creating Calibration stream with 3 lines
-Creating Dimuon stream with 55 lines
-Creating Radiative stream with 3 lines
-Creating CharmCompleteEvent stream with 18 lines
-Creating Charm stream with 241 lines
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingD2hhPromptD2KPiLine has prescale <= 0, it will be removed from stream Charm
-Creating EW stream with 123 lines
-# WARNING: Line StrippingL0DiHadronLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0DiEMLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0PhotonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0DiMuonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0MuonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0ElectronLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HH_mediumPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HHHH_mediumPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HH_heavyPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HHHH_heavyPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTechnicalLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTMP1Line has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTMP2Line has prescale <= 0, it will be removed from stream EW
-Creating MiniBias stream with 4 lines
-Creating Leptonic stream with 190 lines
-# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBu2LLK_mtLine has prescale <= 0, it will be removed from stream Leptonic
-=============================================
-Stripping28 :
-=============================================
-Requested Stripping28
-Trying to import module StrippingArchive.Stripping28
-# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineMBNoBias uses plain Gaudi configurable MBNoBiasORL. Consider using Selection instead!
-Creating Bhadron stream with 993 lines
-# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
-Creating Semileptonic stream with 70 lines
-Creating BhadronCompleteEvent stream with 90 lines
-Creating Leptonic stream with 213 lines
-# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
-Creating PID stream with 2 lines
-Creating Dimuon stream with 58 lines
-Creating Calibration stream with 24 lines
-# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Calibration
-# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Calibration
-Creating Radiative stream with 9 lines
-Creating Charm stream with 252 lines
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
-Creating EW stream with 139 lines
-# WARNING: Line StrippingL0DiHadronLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0DiEMLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0PhotonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0DiMuonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0MuonLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingL0ElectronLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HH_mediumPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HHHH_mediumPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HH_heavyPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultLMR2HHHH_heavyPSLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTechnicalLine has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTMP1Line has prescale <= 0, it will be removed from stream EW
-# WARNING: Line StrippingLowMultTMP2Line has prescale <= 0, it will be removed from stream EW
-Creating MiniBias stream with 3 lines
-Creating CharmCompleteEvent stream with 23 lines
-=============================================
-Stripping29 :
-=============================================
-Requested Stripping29
-Trying to import module StrippingArchive.Stripping29
-# WARNING: lineButo5h_5pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_K4pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_pp3pi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-# WARNING: lineButo5h_ppKpipi_exclLine uses plain Gaudi configurable Buto5hGlobalEVventCutFilter. Consider using Selection instead!
-Creating Bhadron stream with 1011 lines
-# WARNING: Line StrippingB2XEtaB2etaGGKSLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKSDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLLLLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2etaGGLDDLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaB2etaGGKstarLine has prescale <= 0, it will be removed from stream Bhadron
-# WARNING: Line StrippingB2XEtaLb2pKetaGGLine has prescale <= 0, it will be removed from stream Bhadron
-Creating Semileptonic stream with 70 lines
-Creating BhadronCompleteEvent stream with 88 lines
-Creating Leptonic stream with 238 lines
-# WARNING: Line StrippingTau23MuDs23PiLine has prescale <= 0, it will be removed from stream Leptonic
-Creating Dimuon stream with 63 lines
-# WARNING: Line StrippingTrackEffMuonTT_JpsiLine1 has prescale <= 0, it will be removed from stream Dimuon
-# WARNING: Line StrippingTrackEffMuonTT_JpsiLine2 has prescale <= 0, it will be removed from stream Dimuon
-Creating Charm stream with 258 lines
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
-Creating EW stream with 85 lines
-Creating CharmCompleteEvent stream with 38 lines
-=============================================
-Stripping21r1p1 :
-=============================================
-Requested Stripping21r1p1
-Stripping21r1p1 is a duplicate of Stripping21r0p1
-Trying to import module StrippingArchive.Stripping21r0p1
-Creating Bhadron stream with 274 lines
-Creating Semileptonic stream with 38 lines
-Creating BhadronCompleteEvent stream with 15 lines
-# WARNING: Line StrippingB02DsstarKDsstar2DGammaD2HHHBeauty2CharmLine has prescale <= 0, it will be removed from stream BhadronCompleteEvent
-Creating Dimuon stream with 13 lines
-# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Dimuon
-# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Dimuon
-# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Dimuon
-Creating PID stream with 13 lines
-Creating CharmCompleteEvent stream with 6 lines
-Creating Charm stream with 94 lines
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMB has prescale <= 0, it will be removed from stream Charm
-# WARNING: Line StrippingDstarD02xxDst2PiD02Kpi_untagged_BoxMBTrEff has prescale <= 0, it will be removed from stream Charm
-Creating EW stream with 12 lines
-Creating Leptonic stream with 110 lines
-# WARNING: Line StrippingLFVTau2PhiMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVTau2eMuMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingLFVB2hTauMuLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGammapi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_wCNVLL_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_wCNVDD_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma4pi_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Ks0_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_pi0R_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_pi0M_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_2Ks_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGammapi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma2pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBeauty2XGamma3pi_Lambda_Line has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesWideMassLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBs2JPsiPhiLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBs2KKLTUBLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesNoMuIDLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesSSLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBd2JPsiKstLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesLTUBLine has prescale <= 0, it will be removed from stream Leptonic
-# WARNING: Line StrippingBs2MuMuLinesBu2JPsiKLine has prescale <= 0, it will be removed from stream Leptonic
+['Stripping21r0p1', 'Stripping21r1p1', 'Stripping24r0p1', 'Stripping26', 'Stripping28', 'Stripping29', 'Stripping29r1']
diff --git a/Phys/StrippingArchive/tests/test_all_stripping_instantiation.py b/Phys/StrippingArchive/tests/test_all_stripping_instantiation.py
index 64515b17a..96dfa63a7 100644
--- a/Phys/StrippingArchive/tests/test_all_stripping_instantiation.py
+++ b/Phys/StrippingArchive/tests/test_all_stripping_instantiation.py
@@ -1,27 +1,27 @@
+import os
 from StrippingArchive import strippingArchive, _relinfo_obsolete_strippings, _duplicate_strippings
 
-import commands
-
 print "RelInfo-obsolete strippings are"
-print _relinfo_obsolete_strippings
-
+print sorted(_relinfo_obsolete_strippings)
 
 obsoleteduplicates=[]
 for i,k in _duplicate_strippings.iteritems():
     if k in _relinfo_obsolete_strippings:
         obsoleteduplicates.append(i)
 
-strippings = [s for s in strippingArchive() if s not in _relinfo_obsolete_strippings+obsoleteduplicates]
+strippings = sorted([s for s in strippingArchive() if s not in _relinfo_obsolete_strippings+obsoleteduplicates])
 
 print "looping over:"
 print strippings
 
-for astripping in strippings:
-    print '============================================='
-    print astripping,':'
-    print '============================================='
-    status,stdout=commands.getstatusoutput('python -c "from StrippingArchive.Utils import buildStreams; buildStreams('+"'"+astripping+"'"+');"')
-    print stdout
-    if status!=0:
-        print '----------FAILED----------'
-        print astripping,'failed',status
+## Shout out if there is no corresponding build test for active campaign
+missing_build_tests = []
+for name in strippings:
+  name = name.lower()
+  has1 = os.path.exists('../refs/build-streams/%s.ref'%name)
+  has2 = os.path.exists('./build-streams.qms/%s.qmt'%name)
+  if not has1 or not has2:
+    missing_build_tests.append(name)
+if missing_build_tests:
+    print '\nMissing QMtest build-stream test for these active campaign:'
+    print missing_build_tests
diff --git a/Phys/StrippingArchive/tests/test_build_streams.py b/Phys/StrippingArchive/tests/test_build_streams.py
new file mode 100755
index 000000000..e91e5b192
--- /dev/null
+++ b/Phys/StrippingArchive/tests/test_build_streams.py
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+"""
+
+Build a list of streams for a given stripping campaign.
+
+"""
+
+import sys
+from StrippingArchive.Utils import buildStreams
+buildStreams(sys.argv[1])
-- 
GitLab