Skip to content

Commit

Permalink
runtests: support link type file for tests files
Browse files Browse the repository at this point in the history
Signed-off-by: Pengfei Xu <[email protected]>
  • Loading branch information
xupengfe authored and ysun committed Jun 13, 2024
1 parent 1df5023 commit 1231e53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BM/runtests
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ check_test_file_legal() {
[[ $(which file) ]] && {
file_type=""
file_type=$(file "$cmdfile")
[[ "$file_type" == *"text"* ]] || {
append_log "WARNING: -f $cmdfile is not a text type, it's real type:|$file_type|" "$LOGFILE"
[[ "$file_type" == *"text"* ]] || [[ "$file_type" == *"link"* ]] || {
append_log "WARNING: -f $cmdfile is not a text or link type, it's type:|$file_type|" "$LOGFILE"
append_log "Please choose the correct tests file." "$LOGFILE"
return "$NA_CODE"
}
Expand Down

0 comments on commit 1231e53

Please sign in to comment.