Skip to content

Commit

Permalink
runtests: add dependence check exit number
Browse files Browse the repository at this point in the history
Other apps like avocado could use target feature dependence exit number to
judge if test platform supports this feature, so add this dependence check
exit number for the platform dependence result.

Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe committed May 5, 2024
1 parent 9e2f13a commit 84ba476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion runtests
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ BLOCK="BLOCK"
SKIP="SKIP"
FAIL="FAIL"
NA="NA"
DEP_EXIT=$PASS_CODE

START_TIME=""
SUMMRY_LOG=""
Expand Down Expand Up @@ -402,11 +403,12 @@ while getopts ":o:d:f:c:h" opt; do

check_dep_feature "$cmdfile" || {
append_log "Skip $cmdfile due to dependece, please check $DEP_LOG" "$LOGFILE"
DEP_EXIT=$BLOCK_CODE
continue
}
done
cat "$DEP_LOG"
exit 0
exit "$DEP_EXIT"
;;
f)
CMDFILES=$OPTARG
Expand Down

0 comments on commit 84ba476

Please sign in to comment.