From 1cb33a5f44eb4bc2083f80e4eb204f78bb1f0930 Mon Sep 17 00:00:00 2001
From: Stewart Martin-Haugh <smh@cern.ch>
Date: Mon, 4 Mar 2019 18:16:34 +0100
Subject: [PATCH] New bootstrap-generating test, to compare CA and athena

---
 Control/AthenaConfiguration/python/testEmpty.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
 create mode 100644 Control/AthenaConfiguration/python/testEmpty.py

diff --git a/Control/AthenaConfiguration/python/testEmpty.py b/Control/AthenaConfiguration/python/testEmpty.py
new file mode 100644
index 00000000000..e3a40667340
--- /dev/null
+++ b/Control/AthenaConfiguration/python/testEmpty.py
@@ -0,0 +1,14 @@
+#Generate CA pickle files from athena and CA
+from AthenaCommon.Configurable import Configurable
+Configurable.configurableRun3Behavior=1
+from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
+acc = ComponentAccumulator()
+print "bootstrap_test.pkl"
+with file("bootstrap_test.pkl", "w") as p:
+    acc.store( p, nEvents=10, useBootStrapFile=True, threaded=False )
+    p.close()
+
+print "bootstrap_CA_test.pkl"
+with file("bootstrap_CA_test.pkl", "w") as p:
+    acc.store( p, nEvents=10, useBootStrapFile=False, threaded=False )
+    p.close()
-- 
GitLab