File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,10 +56,13 @@ test_distro() {
5656 local image=$1
5757 local name=$2
5858 local pkg_mgr=$3
59-
59+
60+ # Create sanitized name for filenames (POSIX-compliant)
61+ local name_sanitized=$( printf ' %s' " $name " | tr ' ' ' _' )
62+
6063 TOTAL=$(( TOTAL + 1 ))
6164 echo " ${CYAN} ▶${NC} Testing $name ($image )..."
62-
65+
6366 # Create test directory
6467 local test_dir=" /tmp/graphdone-test-$TIMESTAMP "
6568 mkdir -p " $test_dir "
8689 if docker run --rm \
8790 -v " $test_dir :/test:ro" \
8891 " $image " \
89- sh /test/test.sh > " $REPORT_DIR /${name // / _} .log" 2>&1 ; then
90-
91- if grep -q " INSTALLATION_SCRIPT_TEST: SUCCESS" " $REPORT_DIR /${name // / _} .log" ; then
92+ sh /test/test.sh > " $REPORT_DIR /$name_sanitized .log" 2>&1 ; then
93+
94+ if grep -q " INSTALLATION_SCRIPT_TEST: SUCCESS" " $REPORT_DIR /$name_sanitized .log" ; then
9295 echo " ${GREEN} ✓${NC} $name - PASSED"
9396 PASSED=$(( PASSED + 1 ))
9497 TEST_RESULTS=" ${TEST_RESULTS} PASS|$name
You can’t perform that action at this time.
0 commit comments