This makes it a little easier to just cut and paste from the log when
reproducing a failure. (The port number still needs changing though.)
import tempfile
import time
import traceback
+import pipes
import pexpect
logfile = open(Openocd.logname, "w")
if print_log_names:
real_stdout.write("Temporary OpenOCD log: %s\n" % Openocd.logname)
- logfile.write("+ %s\n" % " ".join(cmd))
+ env_entries = ("REMOTE_BITBANG_HOST", "REMOTE_BITBANG_PORT")
+ env_entries = [key for key in env_entries if key in os.environ]
+ logfile.write("+ %s%s\n" % (
+ "".join("%s=%s " % (key, os.environ[key]) for key in env_entries),
+ " ".join(map(pipes.quote, cmd))))
logfile.flush()
self.gdb_ports = []
-Subproject commit 68cad7baf3ed0a4553fffd14726d24519ee1296a
+Subproject commit db0bfa223142e56b17dae6d92610f195014bbb80