Skip to content

Commit 5693465

Browse files
authored
Merge pull request #66 from vnarapar/remoteproc_test_fix
Removed checks for Modem PIL subsystem
2 parents 36a18fb + 3641b08 commit 5693465

File tree

1 file changed

+11
-1
lines changed
  • Runner/suites/Kernel/FunctionalArea/baseport/remoteproc

1 file changed

+11
-1
lines changed

Runner/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,17 @@ log_info "-------------------Starting $TESTNAME Testcase------------------------
4040
log_info "=== Test Initialization ==="
4141

4242
log_info "Getting the number of subsystems aavailable"
43-
subsystem_count=$(cat /sys/class/remoteproc/remoteproc*/state | wc -l)
43+
44+
available_rprocs=$(cat /sys/class/remoteproc/remoteproc*/firmware)
45+
46+
# Check if any line contains "modem"
47+
echo "$available_rprocs" | grep -q "modem"
48+
if [ $? -eq 0 ]; then
49+
subsystem_count=$(echo "$available_rprocs" | grep -v "modem" | wc -l)
50+
else
51+
# "modem" not found, count all lines
52+
subsystem_count=$(echo "$available_rprocs" | wc -l)
53+
fi
4454

4555
# Execute the command and get the output
4656
log_info "Checking if all the remoteprocs are in running state"

0 commit comments

Comments
 (0)