Skip to content

Commit 2815849

Browse files
committed
fix(wpss_remoteproc): ensure .res file is created on fail_and_exit paths
- Replaced usage of `fail_and_exit` with explicit logging and .res file creation - Ensures that all failure exit paths write the expected result file (e.g., wpss_remoteproc.res) - Fixes issue where send-to-lava.sh reports missing result file due to early script exit without writing status - Also avoids silent test failures being marked incomplete by CI infrastructure Signed-off-by: Srikanth Muppandam <[email protected]>
1 parent eb98001 commit 2815849

File tree

1 file changed

+8
-4
lines changed
  • Runner/suites/Kernel/Baseport/wpss_remoteproc

1 file changed

+8
-4
lines changed

Runner/suites/Kernel/Baseport/wpss_remoteproc/run.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
44
# SPDX-License-Identifier: BSD-3-Clause-Clear
5+
#
56
# Robustly find and source init_env
67
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
78
INIT_ENV=""
@@ -174,11 +175,13 @@ else
174175
else
175176
# If DT said WPSS present but neither remoteproc nor driver -> FAIL
176177
if [ "$dt_says_present" -eq 1 ]; then
177-
fail_and_exit "DT lists $FW but no remoteproc and ath11k not loaded"
178+
log_fail "DT lists $FW but no remoteproc and ath11k not loaded"
179+
echo "$TESTNAME FAIL" >"$RES_FILE"
180+
exit 1
178181
fi
179-
log_skip "$TESTNAME SKIP – neither remoteproc nor ath11k path available"
180-
echo "$TESTNAME SKIP" >"$RES_FILE"
181-
exit 0
182+
log_skip "$TESTNAME SKIP – neither remoteproc nor ath11k path available"
183+
echo "$TESTNAME SKIP" >"$RES_FILE"
184+
exit 0
182185
fi
183186
fi
184187

@@ -200,6 +203,7 @@ if [ -e "$1" ]; then
200203
else
201204
log_info "No wlan interface yet (maybe not brought up)"
202205
fi
206+
203207
# Final result for driver path: PASS if we got here
204208
log_pass "WPSS driver path checks passed"
205209
echo "$TESTNAME PASS" >"$RES_FILE"

0 commit comments

Comments
 (0)