Show More
@@ -4136,7 +4136,9 class TestRunner: | |||||
4136 | msg = "fatal: fetching module policy from `hg` failed:\n" |
|
4136 | msg = "fatal: fetching module policy from `hg` failed:\n" | |
4137 | msg = colorize(msg, "red", self.options.color) |
|
4137 | msg = colorize(msg, "red", self.options.color) | |
4138 | sys.stderr.write(msg) |
|
4138 | sys.stderr.write(msg) | |
4139 |
cmd_err = colorize(err.decode(), " |
|
4139 | cmd_err = colorize(err.decode(), "magenta", self.options.color) | |
|
4140 | sys.stderr.write(cmd_err) | |||
|
4141 | cmd_err = colorize(out.decode(), "yellow", self.options.color) | |||
4140 | sys.stderr.write(cmd_err) |
|
4142 | sys.stderr.write(cmd_err) | |
4141 | sys.exit(4) |
|
4143 | sys.exit(4) | |
4142 | return out |
|
4144 | return out | |
@@ -4156,10 +4158,12 class TestRunner: | |||||
4156 | ) |
|
4158 | ) | |
4157 | out, err = p.communicate() |
|
4159 | out, err = p.communicate() | |
4158 | if p.returncode != 0: |
|
4160 | if p.returncode != 0: | |
4159 | msg = "fatal: fetching library from `hg` failed:\n" |
|
4161 | msg = f"fatal: fetching library from `hg` failed with {p.returncode}:\n" | |
4160 | msg = colorize(msg, "red", self.options.color) |
|
4162 | msg = colorize(msg, "red", self.options.color) | |
4161 | sys.stderr.write(msg) |
|
4163 | sys.stderr.write(msg) | |
4162 |
cmd_err = colorize(err.decode(), " |
|
4164 | cmd_err = colorize(err.decode(), "magenta", self.options.color) | |
|
4165 | sys.stderr.write(cmd_err) | |||
|
4166 | cmd_err = colorize(out.decode(), "yellow", self.options.color) | |||
4163 | sys.stderr.write(cmd_err) |
|
4167 | sys.stderr.write(cmd_err) | |
4164 | sys.exit(4) |
|
4168 | sys.exit(4) | |
4165 | return out |
|
4169 | return out |
General Comments 0
You need to be logged in to leave comments.
Login now