mirror of
https://github.com/m-labs/artiq.git
synced 2024-12-20 00:46:30 +08:00
artiq_devtool: abort if build failed.
This commit is contained in:
parent
7c2b1155ef
commit
dca3fb5c96
@ -83,10 +83,14 @@ def main():
|
|||||||
for action in args.actions:
|
for action in args.actions:
|
||||||
if action == "build":
|
if action == "build":
|
||||||
logger.info("Building runtime")
|
logger.info("Building runtime")
|
||||||
subprocess.call(["python3", "-m", "artiq.gateware.targets.kc705",
|
try:
|
||||||
|
subprocess.check_call(["python3", "-m", "artiq.gateware.targets.kc705",
|
||||||
"-H", "nist_clock",
|
"-H", "nist_clock",
|
||||||
"--no-compile-gateware",
|
"--no-compile-gateware",
|
||||||
"--output-dir", "/tmp/kc705"])
|
"--output-dir", "/tmp/kc705"])
|
||||||
|
except subprocess.CalledProcessError:
|
||||||
|
logger.error("Build failed")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
elif action == "boot":
|
elif action == "boot":
|
||||||
logger.info("Uploading runtime")
|
logger.info("Uploading runtime")
|
||||||
|
Loading…
Reference in New Issue
Block a user