##// END OF EJS Templates
run-tests: provide more information when calling hg fails...
marmoute -
r53434:3b63f90f default
parent child Browse files
Show More
@@ -4136,7 +4136,9 class TestRunner:
4136 4136 msg = "fatal: fetching module policy from `hg` failed:\n"
4137 4137 msg = colorize(msg, "red", self.options.color)
4138 4138 sys.stderr.write(msg)
4139 cmd_err = colorize(err.decode(), "yellow", self.options.color)
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 4142 sys.stderr.write(cmd_err)
4141 4143 sys.exit(4)
4142 4144 return out
@@ -4156,10 +4158,12 class TestRunner:
4156 4158 )
4157 4159 out, err = p.communicate()
4158 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 4162 msg = colorize(msg, "red", self.options.color)
4161 4163 sys.stderr.write(msg)
4162 cmd_err = colorize(err.decode(), "yellow", self.options.color)
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 4167 sys.stderr.write(cmd_err)
4164 4168 sys.exit(4)
4165 4169 return out
General Comments 0
You need to be logged in to leave comments. Login now