Catch exception
This commit is contained in:
@@ -35,7 +35,7 @@ name = "fpga-sim" # REQUIRED, is the only field that cannot be marked as dynami
|
|||||||
# https://packaging.python.org/guides/single-sourcing-package-version/
|
# https://packaging.python.org/guides/single-sourcing-package-version/
|
||||||
|
|
||||||
# dynamic = ["version"]
|
# dynamic = ["version"]
|
||||||
version = "0.5.0" # REQUIRED, although can be dynamic
|
version = "0.5.1" # REQUIRED, although can be dynamic
|
||||||
|
|
||||||
# This is a one-line description or tagline of what your project does. This
|
# This is a one-line description or tagline of what your project does. This
|
||||||
# corresponds to the "Summary" metadata field:
|
# corresponds to the "Summary" metadata field:
|
||||||
|
|||||||
@@ -108,15 +108,19 @@ def fpga_sim_main():
|
|||||||
if test["waves"]:
|
if test["waves"]:
|
||||||
build_args.append("--trace-fst")
|
build_args.append("--trace-fst")
|
||||||
|
|
||||||
runner.build(
|
try:
|
||||||
sources=sources,
|
runner.build(
|
||||||
includes=incdirs,
|
sources=sources,
|
||||||
hdl_toplevel=test["toplevel"],
|
includes=incdirs,
|
||||||
build_dir=f"{test['base_path']}/sim_build",
|
hdl_toplevel=test["toplevel"],
|
||||||
waves=test["waves"],
|
build_dir=f"{test['base_path']}/sim_build",
|
||||||
defines=defines,
|
waves=test["waves"],
|
||||||
build_args=build_args
|
defines=defines,
|
||||||
)
|
build_args=build_args
|
||||||
|
)
|
||||||
|
except CalledProcessError:
|
||||||
|
print("Failed to compile")
|
||||||
|
return
|
||||||
|
|
||||||
result_xml = f"../sim_build/{test['name']}_results.xml".replace(" ", "_")
|
result_xml = f"../sim_build/{test['name']}_results.xml".replace(" ", "_")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user