[test] flake8 fixes in utils.py
A whitespace change, and remove a duplicate definition of a
function(!), keeping the second.
Signed-off-by: Rupert Swarbrick <rswarbrick@lowrisc.org>
diff --git a/test/systemtest/utils.py b/test/systemtest/utils.py
index 92a086d..43b7ff2 100644
--- a/test/systemtest/utils.py
+++ b/test/systemtest/utils.py
@@ -96,7 +96,7 @@
self.proc = subprocess.Popen(cmd,
cwd=self.cwd,
universal_newlines=True,
- bufsize=1, # Use line buffering
+ bufsize=1, # Use line buffering
stdin=subprocess.PIPE,
stdout=self._f_stdout,
stderr=self._f_stderr)
@@ -193,23 +193,6 @@
wait_func=wait_func)
-
-def load_sw_over_spi(tmp_path, spiflash_path, sw_test_bin, ftdi_dev_id):
- """ Use the spiflash utility to load software onto a device. """
-
- log.info("Flashing device software from {} over SPI".format(str(sw_test_bin)))
-
- cmd_flash = [
- spiflash_path,
- '--input', sw_test_bin,
- '--dev-id', ftdi_dev_id]
- p_flash = Process(cmd_flash, logdir=tmp_path, cwd=tmp_path)
- p_flash.run()
- p_flash.proc.wait(timeout=30)
- assert p_flash.proc.returncode == 0
-
- log.info("Device software flashed.")
-
class LoggingSerial(serial.Serial):
""" Acess to a serial console which logs all read/written data to file. """
def __init__(self,