diff --git a/Runner/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh b/Runner/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh index 514a408b..8953f0b9 100755 --- a/Runner/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh +++ b/Runner/suites/Kernel/FunctionalArea/baseport/remoteproc/run.sh @@ -40,7 +40,17 @@ log_info "-------------------Starting $TESTNAME Testcase------------------------ log_info "=== Test Initialization ===" log_info "Getting the number of subsystems aavailable" -subsystem_count=$(cat /sys/class/remoteproc/remoteproc*/state | wc -l) + +available_rprocs=$(cat /sys/class/remoteproc/remoteproc*/firmware) + +# Check if any line contains "modem" +echo "$available_rprocs" | grep -q "modem" +if [ $? -eq 0 ]; then + subsystem_count=$(echo "$available_rprocs" | grep -v "modem" | wc -l) +else + # "modem" not found, count all lines + subsystem_count=$(echo "$available_rprocs" | wc -l) +fi # Execute the command and get the output log_info "Checking if all the remoteprocs are in running state"