From abad967507e5adc5b21c8d94ee930dbc1240fd52 Mon Sep 17 00:00:00 2001 From: Pengfei Xu Date: Fri, 10 May 2024 15:33:33 +0800 Subject: [PATCH] runtests: improve the judgement of REASON filling 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 --- BM/runtests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BM/runtests b/BM/runtests index 8d17c28a..c76f2f52 100755 --- a/BM/runtests +++ b/BM/runtests @@ -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