Skip to content

Commit 821f903

Browse files
committed
Make sure metadata exists in the generated test AO2D
1 parent bda2612 commit 821f903

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

prodtests/full_system_test.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,12 @@ for STAGE in $STAGES; do
340340
if [[ $aod_size -gt 0 ]]; then
341341
echo "AO2D file produced: AO2D.root (size: ${aod_size} bytes)"
342342
echo "aod_size_${STAGE},${TAG} value=${aod_size}" >> ${METRICFILE}
343+
# Check that the metadata TMap is present
344+
if ! root -b -l -q -e 'auto* f = TFile::Open("AO2D.root"); if (!f || f->IsZombie()) { exit(1); } if (!dynamic_cast<TMap*>(f->Get("metaData"))) { std::cerr << "ERROR: metaData TMap missing from AO2D.root" << std::endl; exit(1); }' 2>&1; then
345+
echo "ERROR: metaData TMap missing from AO2D.root"
346+
exit 1
347+
fi
348+
echo "AO2D metaData TMap present"
343349
else
344350
echo "ERROR: AO2D file (AO2D.root) exists but is empty"
345351
echo "aod_size_${STAGE},${TAG} value=0" >> ${METRICFILE}

0 commit comments

Comments
 (0)