Skip to content

Commit

Permalink
set exit codes correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
mbackenkoehler committed Feb 27, 2024
1 parent 9b000d9 commit 9a89471
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions devtools/test_talktorials.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
import sys
import subprocess
import pathlib
Expand Down Expand Up @@ -61,5 +62,8 @@ def main():


if __name__ == "__main__":
return_code = main()
sys.exit(return_code)
success = main()
if success:
sys.exit(os.EX_OK)
else:
sys.exit(os.EX_SOFTWARE)

0 comments on commit 9a89471

Please sign in to comment.