Skip to content

Commit b7f6809

Browse files
authored
Merge pull request qualcomm-linux#150 from smuppand/remoteproc
fix(wpss_remoteproc): write .res next to test by cd’ing into testcase dir
2 parents 51e033b + c2db179 commit b7f6809

File tree

1 file changed

+6
-0
lines changed
  • Runner/suites/Kernel/Baseport/wpss_remoteproc

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ TESTNAME="wpss_remoteproc"
3333
FW="wpss"
3434
RES_FILE="./$TESTNAME.res"
3535

36+
# Run from the testcase directory so relative outputs (like .res) land next to run.sh
37+
test_path="$(find_test_case_by_name "$TESTNAME")"
38+
cd "$test_path" || {
39+
echo "[ERROR] Could not cd to testcase path: $test_path" >&2
40+
exit 1
41+
}
3642
log_info "-----------------------------------------------------------------------------------------"
3743
log_info "------------------- Starting $TESTNAME Testcase ----------------------------"
3844
log_info "=== Test Initialization ==="

0 commit comments

Comments
 (0)