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/
|
||||
|
||||
# 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
|
||||
# corresponds to the "Summary" metadata field:
|
||||
|
||||
@@ -108,15 +108,19 @@ def fpga_sim_main():
|
||||
if test["waves"]:
|
||||
build_args.append("--trace-fst")
|
||||
|
||||
runner.build(
|
||||
sources=sources,
|
||||
includes=incdirs,
|
||||
hdl_toplevel=test["toplevel"],
|
||||
build_dir=f"{test['base_path']}/sim_build",
|
||||
waves=test["waves"],
|
||||
defines=defines,
|
||||
build_args=build_args
|
||||
)
|
||||
try:
|
||||
runner.build(
|
||||
sources=sources,
|
||||
includes=incdirs,
|
||||
hdl_toplevel=test["toplevel"],
|
||||
build_dir=f"{test['base_path']}/sim_build",
|
||||
waves=test["waves"],
|
||||
defines=defines,
|
||||
build_args=build_args
|
||||
)
|
||||
except CalledProcessError:
|
||||
print("Failed to compile")
|
||||
return
|
||||
|
||||
result_xml = f"../sim_build/{test['name']}_results.xml".replace(" ", "_")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user