File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Runner/suites/Kernel/FunctionalArea/baseport/remoteproc Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,17 @@ log_info "-------------------Starting $TESTNAME Testcase------------------------
4040log_info " === Test Initialization ==="
4141
4242log_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
4656log_info " Checking if all the remoteprocs are in running state"
You can’t perform that action at this time.
0 commit comments