test/test_targets: update build_test.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 22 May 2020 06:42:02 +0000 (08:42 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 22 May 2020 06:42:02 +0000 (08:42 +0200)
test/test_targets.py

index ffbad23e743a2235a020b3d9c5673bf28e4415e0..055954f10c41a723263b0a0e628a71c546d977fd 100644 (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