mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Return proper exit value if test failed
Return 1 then. Contributes to issue CURA-5330.
This commit is contained in:
parent
ffd1c5cc09
commit
651f2ffbc9
1 changed files with 3 additions and 8 deletions
11
run_mypy.py
11
run_mypy.py
|
@ -46,14 +46,9 @@ def main():
|
||||||
print("------------- Checking module {mod}".format(**locals()))
|
print("------------- Checking module {mod}".format(**locals()))
|
||||||
result = subprocess.run([sys.executable, mypyModule, "-p", mod])
|
result = subprocess.run([sys.executable, mypyModule, "-p", mod])
|
||||||
if result.returncode != 0:
|
if result.returncode != 0:
|
||||||
print("""
|
print("\nModule {mod} failed checking. :(".format(**locals()))
|
||||||
Module {mod} failed checking. :(
|
return 1
|
||||||
""".format(**locals()))
|
|
||||||
break
|
|
||||||
else:
|
else:
|
||||||
print("""
|
print("\n\nDone checking. All is good.")
|
||||||
|
|
||||||
Done checking. All is good.
|
|
||||||
""")
|
|
||||||
return 0
|
return 0
|
||||||
sys.exit(main())
|
sys.exit(main())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue