Skip to content

Commit 67acd93

Browse files
committed
small error fixed
1 parent 2c07ad8 commit 67acd93

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bin/cv32e40pv2_nr_generator.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ add_rmdb_cmd_and_check () {
5757

5858
if [[ $coverage -eq 1 ]]; then
5959
echo "status_section=\$(sed -n '/Test (valid UCDB) status:/,/RegressionCompleted:/p' \${regr}.log | head -n -1)
60-
ok_count=\$(echo \"\$status_section\" | grep \"Ok\" | sed 's/[^0-9]*//g')
61-
warning_count=\$(echo \"\$status_section\" | grep \"Warning\" | sed 's/[^0-9]*//g')
60+
ok_count=\$(echo \"\$status_section\" | grep \"Ok \" | sed 's/[^0-9]*//g')
61+
warning_count=\$(echo \"\$status_section\" | grep \"Warning \" | sed 's/[^0-9]*//g')
6262
pass_count=\$((ok_count + warning_count))" >> $output_file
6363
else
6464
echo "status_section=\$(sed -n '/Action script pass\/fail status:/,/RegressionCompleted:/p' \${regr}.log | head -n -1)
65-
tmp_pass_count=\$(echo \"\$status_section\" | grep \"Passed\" | sed 's/[^0-9]*//g')
65+
tmp_pass_count=\$(echo \"\$status_section\" | grep \"Passed \" | sed 's/[^0-9]*//g')
6666
pass_count=\$((tmp_pass_count-3)) " >> $output_file
6767
fi
6868

6969
echo "
70-
fail_count=\$(echo \"\$status_section\" | grep \"Failed\" | sed 's/[^0-9]*//g')
70+
fail_count=\$(echo \"\$status_section\" | grep \"Failed \" | sed 's/[^0-9]*//g')
7171
((tot_fail_count+=fail_count))
7272
((tot_pass_count+=pass_count))
7373
total=\$((fail_count + pass_count))

0 commit comments

Comments
 (0)