Skip to content

Commit a40b8c0

Browse files
committed
Correct return code from analysis tests
1 parent b69650d commit a40b8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/analysis_testing/analysis_test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ NTF=$(find ./ -name "tf*" -type d | wc | awk '//{print $1}')
1818

1919
# commonDPL="-b --run --fairmq-ipc-prefix ${FAIRMQ_IPC_PREFIX:-./.tmp} --driver-client-backend ws:// --rate 1000"
2020
commonDPL="-b --run --driver-client-backend ws:// --rate 1000"
21-
annaCMD="${testanalysis} ${commonDPL} --aod-file AO2D.root; mv AnalysisResults.root AnalysisResults_${testanalysis}.root; mv QAResults.root QAResults_${testanalysis}.root"
21+
annaCMD="${testanalysis} ${commonDPL} --aod-file AO2D.root; RC=\$?; [ -f AnalysisResults.root ] && mv AnalysisResults.root AnalysisResults_${testanalysis}.root; [ -f QAResult.root ] && mv QAResults.root QAResults_${testanalysis}.root; [ \${RC} -eq 0 ]"
2222

2323
rm workflow_ana.json
2424
# this is to analyse the global (merged) AOD

0 commit comments

Comments
 (0)