Skip to content

Commit

Permalink
runtests: improve the judgement of REASON filling
Browse files Browse the repository at this point in the history
If one feature "other warning" dependence checking is passed, and the REASON
is filled with previous one, the REASON will use previous one and will not
update, it's not correct, so improve the REASON filling judgement to fill
the correct REASON for target feature.

Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe authored and ysun committed May 17, 2024
1 parent 54b75c9 commit abad967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BM/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ check_dep_feature() {
# warn_sta does not set the block, just NA to fail in some cases of this feature
[[ "$ret" == "$BLOCK_CODE" ]] && warn_sta="$NA"

[[ -z "$REASON" ]] && REASON="No dependence for $subfolder"
[[ -z "$REASON" || "$ret" == "$PASS_CODE" ]] && REASON="No dependence for $subfolder"
printf "%-16s%-13s%-16s%-13s%-20s\n" "$subfolder" "|$hw_sta" "|$other_sta" "|$warn_sta" \
"|$REASON" >> "$DEP_LOG"
return 0
Expand Down

0 comments on commit abad967

Please sign in to comment.