##// END OF EJS Templates
run-tests: open child-parent pipes in binary mode...
Siddharth Agarwal -
r17925:2631b357 default
parent child Browse files
Show More
@@ -1071,7 +1071,7 b' def runchildren(options, tests):'
1071 childopts += ['--tmpdir', childtmp]
1071 childopts += ['--tmpdir', childtmp]
1072 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job
1072 cmdline = [PYTHON, sys.argv[0]] + opts + childopts + job
1073 vlog(' '.join(cmdline))
1073 vlog(' '.join(cmdline))
1074 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'r')
1074 fps[os.spawnvp(os.P_NOWAIT, cmdline[0], cmdline)] = os.fdopen(rfd, 'rb')
1075 os.close(wfd)
1075 os.close(wfd)
1076 signal.signal(signal.SIGINT, signal.SIG_IGN)
1076 signal.signal(signal.SIGINT, signal.SIG_IGN)
1077 failures = 0
1077 failures = 0
@@ -1155,7 +1155,7 b' def runtests(options, tests):'
1155 ignored = len(results['i'])
1155 ignored = len(results['i'])
1156
1156
1157 if options.child:
1157 if options.child:
1158 fp = os.fdopen(options.child, 'w')
1158 fp = os.fdopen(options.child, 'wb')
1159 pickle.dump(results, fp, pickle.HIGHEST_PROTOCOL)
1159 pickle.dump(results, fp, pickle.HIGHEST_PROTOCOL)
1160 if options.time:
1160 if options.time:
1161 pickle.dump(times, fp, pickle.HIGHEST_PROTOCOL)
1161 pickle.dump(times, fp, pickle.HIGHEST_PROTOCOL)
General Comments 0
You need to be logged in to leave comments. Login now