From 0546c791e2ae5560ddd5f11f9bd9ef6cb7d9e2bb Mon Sep 17 00:00:00 2001
From: Susumu Oda <susumu.oda@cern.ch>
Date: Mon, 13 May 2019 18:37:12 +0000
Subject: [PATCH] Reduce the number of events from 10 to 6 and the number of
 threads from 5 to 3 to avoid timeout of TestSCTDecode.

---
 .../InDetEventCnv/SCT_RawDataByteStreamCnv/CMakeLists.txt     | 4 ++--
 .../SCT_RawDataByteStreamCnv/share/testSCTDecode.py           | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/CMakeLists.txt b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/CMakeLists.txt
index 6aeecdbedf1..8d41a87a08f 100644
--- a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/CMakeLists.txt
+++ b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/CMakeLists.txt
@@ -36,9 +36,9 @@ atlas_add_component( SCT_RawDataByteStreamCnv
 
 # Run tests:
 atlas_add_test( TestSCTDecode
-                SCRIPT athena.py --threads=5 SCT_RawDataByteStreamCnv/testSCTDecode.py
+                SCRIPT athena.py --threads=3 SCT_RawDataByteStreamCnv/testSCTDecode.py
                 PROPERTIES TIMEOUT 600
-                ENVIRONMENT THREADS=5 )
+                ENVIRONMENT THREADS=3 )
 atlas_add_test( TestSCTEncodeSerial
                 SCRIPT athena.py SCT_RawDataByteStreamCnv/testSCTEncode.py
                 PROPERTIES TIMEOUT 300 )
diff --git a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/share/testSCTDecode.py b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/share/testSCTDecode.py
index 669b8674cee..8f033c9eb73 100644
--- a/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/share/testSCTDecode.py
+++ b/InnerDetector/InDetEventCnv/SCT_RawDataByteStreamCnv/share/testSCTDecode.py
@@ -201,7 +201,7 @@ if doPrint:
     print topSequence
 
 # Set the number of events to be processed
-theApp.EvtMax = 10
+theApp.EvtMax = 6
 
 #--------------------------------------------------------------
 # Set output lvl (VERBOSE, DEBUG, INFO, WARNING, ERROR, FATAL)
-- 
GitLab