Skip to content

Commit

Permalink
This grep can be a simple one
Browse files Browse the repository at this point in the history
  • Loading branch information
Caspar van Leeuwen committed Oct 2, 2024
1 parent fba72eb commit e06e303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/check-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ SUCCESS=-1
# Grep for the success pattern, so we can report the amount of tests run
if [[ ${SLURM_OUTPUT_FOUND} -eq 1 ]]; then
GP_success='\[\s*PASSED\s*\].*Ran .* test case'
grep_reframe_success=$(grep -v "^>> searching for " ${job_dir}/${job_out} | grep -Pzo "${GP_success}")
grep_reframe_success=$(grep -v "^>> searching for " ${job_dir}/${job_out} | grep "${GP_success}")
[[ $? -eq 0 ]] && SUCCESS=1 || SUCCESS=0
# have to be careful to not add searched for pattern into slurm out file
[[ ${VERBOSE} -ne 0 ]] && echo ">> searching for '"${GP_success}"'"
Expand Down

0 comments on commit e06e303

Please sign in to comment.