From bc2d42e451d7b866f0a28c1c3888a8b54ed219d2 Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 7 Jul 2019 00:11:33 +0000 Subject: Replace subprocess.run(..., check=True) with subprocess.check_call(). --- nmigen_boards/versa_ecp5.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nmigen_boards/versa_ecp5.py') diff --git a/nmigen_boards/versa_ecp5.py b/nmigen_boards/versa_ecp5.py index 262e309..35b28be 100644 --- a/nmigen_boards/versa_ecp5.py +++ b/nmigen_boards/versa_ecp5.py @@ -171,10 +171,10 @@ class VersaECP5Platform(LatticeECP5Platform): openocd = os.environ.get("OPENOCD", "openocd") with products.extract("{}-openocd.cfg".format(name), "{}.svf".format(name)) \ as (config_filename, vector_filename): - subprocess.run([openocd, + subprocess.check_call([openocd, "-f", config_filename, "-c", "transport select jtag; init; svf -quiet {}; exit".format(vector_filename) - ], check=True) + ]) if __name__ == "__main__": -- cgit v1.2.3