Skip to content

Commit

Permalink
Pass on failure code
Browse files Browse the repository at this point in the history
  • Loading branch information
simoncozens committed Nov 8, 2023
1 parent 8db3b9f commit d037816
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Lib/notobuilder/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
from os import chdir
from pathlib import Path
import sys

from strictyaml import load
from gftools.builder import GFBuilder, BASE_SCHEMA
Expand Down Expand Up @@ -33,7 +34,8 @@ def main(args=None):
if args.graph:
pd.draw_graph()
if not args.no_ninja:
subprocess.run(["ninja"])
result = subprocess.run(["ninja"])
sys.exit(result.returncode)

if __name__ == '__main__':
main()

0 comments on commit d037816

Please sign in to comment.