Skip to content

Commit

Permalink
runtests: improve dependency steps to generate expected dependency su…
Browse files Browse the repository at this point in the history
…mmary

Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe authored and ysun committed Aug 2, 2024
1 parent 3d7f840 commit 395976c
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions BM/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -400,9 +400,10 @@ run_tests() {

check_dep_feature "$cmdfile" || {
append_log "Skip $cmdfile due to dependece, please check $DEP_LOG" "$LOGFILE"
DEP_EXIT=$BLOCK_CODE
continue
}

append_log "Next run cases from $cmdfile" "$LOGFILE"
runcmdfile "$cmdfile" "$LOGFILE"
done

Expand Down Expand Up @@ -453,15 +454,11 @@ while getopts ":o:d:f:t:s:c:h" opt; do
SCENARIO_FOLDER=$OPTARG
[[ -d "$SCENARIO_FOLDER" ]] || usage
test_files=$(find "$SCENARIO_FOLDER" -name "tests-*")
[[ -z "$test_files" ]] && append_log "No tests-* files under $SCENARIO_FOLDER"
[[ -z "$test_files" ]] && {
append_log "No tests-* files under $SCENARIO_FOLDER"
exit 2
}
for cmdfile in $test_files; do
check_test_file_legal "$cmdfile" || continue

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

0 comments on commit 395976c

Please sign in to comment.