X-Git-Url: https://git.libre-soc.org/?p=riscv-tests.git;a=blobdiff_plain;f=debug%2Ftestlib.py;h=987d71e511e0c11549c820fc81537d4b39123e47;hp=0e504d1a7d0fc85a7a270c092936781488b25f9c;hb=923f62fc1dec4244180c00e0b1f8a845aeaa90e8;hpb=ce10cc711f00df9fc97df39094c1cddd49ae212e diff --git a/debug/testlib.py b/debug/testlib.py index 0e504d1..987d71e 100644 --- a/debug/testlib.py +++ b/debug/testlib.py @@ -130,6 +130,7 @@ class Openocd(object): cmd.append("-d") logfile = open(Openocd.logname, "w") logfile.write("+ %s\n" % " ".join(cmd)) + logfile.flush() self.process = subprocess.Popen(cmd, stdin=subprocess.PIPE, stdout=logfile, stderr=logfile) # TODO: Pick a random port