mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2025-03-15 20:30:28 +01:00
fix: multiple reports with: -m 1, --max-count, stop reading a file after 1 matching line
This commit is contained in:
parent
76af43fbe1
commit
b381b2ad24
1 changed files with 1 additions and 1 deletions
2
.github/workflows/jmeter.yml
vendored
2
.github/workflows/jmeter.yml
vendored
|
@ -65,7 +65,7 @@ jobs:
|
|||
echo "Running test with $file"
|
||||
filename=$(basename "$file" ".jmx")
|
||||
$GITHUB_WORKSPACE/apache-jmeter-5.6.2/bin/jmeter -n -t $file -l logs/$filename.log -e -o reports ;
|
||||
error_count=$(cat jmeter.log | grep "summary =" | awk '{print $19}')
|
||||
error_count=$(cat jmeter.log | grep -m 1 "summary =" | awk '{print $19}')
|
||||
echo "Error count: '$error_count'"
|
||||
echo "##########"
|
||||
echo "$error_count" == "0"
|
||||
|
|
Loading…
Add table
Reference in a new issue