test/test_targets: update build_test.

This commit is contained in:
Florent Kermarrec 2020-05-22 08:42:02 +02:00
parent 42350f6d83
commit 3d06dc028c
1 changed files with 2 additions and 2 deletions

View File

@ -18,9 +18,9 @@ def build_test(socs):
errors = 0
for soc in socs:
os.system("rm -rf build")
builder = Builder(soc, output_dir="./build", compile_software=False, compile_gateware=False)
builder = Builder(soc, compile_software=False, compile_gateware=False)
builder.build()
errors += not os.path.isfile("./build/gateware/top.v")
errors += not os.path.isfile("build/{build_name}/gateware/{build_name}.v".format(build_name=soc.build_name))
os.system("rm -rf build")
return errors