Replace subprocess.run(..., check=True) with subprocess.check_call().
[nmigen-boards.git] / nmigen_boards / icebreaker.py
index 5032346747e21c8e40f28190e903338aedfb5d1d..39d82d5cde32b36b8684d4f8e003093a9a0eb902 100644 (file)
@@ -78,7 +78,7 @@ class ICEBreakerPlatform(LatticeICE40Platform):
     def toolchain_program(self, products, name):
         iceprog = os.environ.get("ICEPROG", "iceprog")
         with products.extract("{}.bin".format(name)) as bitstream_filename:
-            subprocess.run([iceprog, bitstream_filename], check=True)
+            subprocess.check_call([iceprog, bitstream_filename])
 
 
 if __name__ == "__main__":