Skip to content
Snippets Groups Projects
Commit 64b6e217 authored by Andrei Stan's avatar Andrei Stan
Browse files

tests/grade.sh: Allow linter grading for solutions with at least 60 point


Signed-off-by: default avatarAndrei Stan <andreistan2003@gmail.com>
parent 52403ae6
No related branches found
No related tags found
No related merge requests found
Pipeline #91976 passed
...@@ -81,7 +81,7 @@ function grade_style() ...@@ -81,7 +81,7 @@ function grade_style()
print_results() print_results()
{ {
checker_grade=$(< checker.out sed -n '/^Checker:/s/^.*[ \t]\+\([0-9\.]\+\)\/.*$/\1/p') checker_grade=$(< checker.out sed -n '/^Checker:/s/^.*[ \t]\+\([0-9\.]\+\)\/.*$/\1/p')
if test "$(echo "$checker_grade > 60" | bc)" -eq 1; then if test "$(echo "$checker_grade > 59" | bc)" -eq 1; then
style_grade=$(cat style_grade.out) style_grade=$(cat style_grade.out)
else else
style_grade=0 style_grade=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment