Skip to content

Commit

Permalink
test: print pass if grep WARN succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
zjp-CN committed Dec 26, 2024
1 parent 43a6256 commit 70a7414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ find support -type f -name "Cargo.toml" | while read -r cargo_file; do
#脚本有参数时按照给定参数执行cargo命令
#Example: batch.sh rap -uaf
cmd="cargo rap $@"
$cmd 2>&1 | tee $cur/rap.txt | grep 'RAP|WARN|'
$cmd 2>&1 | tee $cur/rap.txt | grep 'RAP|WARN|' && echo -e "\033[32m$project_dir pass\033[0m"
fi

if [ $? -ne 0 ]; then
Expand Down

0 comments on commit 70a7414

Please sign in to comment.