From ab5dc80847329d4f1043bc5dc2d025a25bc6875f Mon Sep 17 00:00:00 2001
From: Giovanna Lazzari Miotto <giovanna.lazzari.miotto@cern.ch>
Date: Wed, 25 Sep 2024 17:16:15 +0200
Subject: [PATCH] test: Look for results in "in_progress" dir

---
 scripts/test_filedma.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/test_filedma.sh b/scripts/test_filedma.sh
index a078e227..fb89544a 100644
--- a/scripts/test_filedma.sh
+++ b/scripts/test_filedma.sh
@@ -100,6 +100,9 @@ function run_filedma_test() {
     local pattern=".*${output_prefix}.*${output_suffix}[_0-9]*"
     echo "${FUNCNAME}: searching for filename matching pattern: '${pattern}'"
     local output_files=$(find ${output_dir} -type f -iregex "${pattern}" ! -iname "*testfile.dat" | sort -rV)
+        if [ -z "${output_files}" ]; then
+          output_files=$(find "${output_dir}/in_progress" -type f -iregex "${pattern}" ! -iname "*testfile.dat" | sort -rV)
+        fi
     if [ -z "${output_files}" ]; then
       echo "${FUNCNAME}: SCDAQ test for ${test_id} FAILED: output file not found!"
       test_failed=1
-- 
GitLab