Skip to content

Commit d922ab2

Browse files
committed
fix: missing exit code
1 parent 987e9bb commit d922ab2

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ Note that the log for version before v0.1.1 may not be in the mentioned format.
99

1010
## [Unreleased]
1111

12+
## v0.1.2a3 - 2024-10-01
13+
14+
### Changed
15+
16+
- Add non-zero exit code when the points is less than the total points.
17+
1218
## v0.1.2a2 - 2024-10-01
1319

1420
### Changed

grading_lib/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.2a2
1+
0.1.2a3

grading_lib/cli/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ def grade_command(path: str | Path) -> None:
133133
student_total_points += test_program.result.points
134134
print(f"Total: {student_total_points:>5} / {total_points:>5}")
135135

136+
if student_total_points < total_points:
137+
sys.exit(1)
138+
136139

137140
cli.add_command(dev)
138141
cli.add_command(internal)

0 commit comments

Comments
 (0)