##// END OF EJS Templates
run-tests: give unittest wrapper a short description...
Gregory Szorc -
r21427:60f94475 default
parent child Browse files
Show More
@@ -1251,12 +1251,18 b' class TestRunner(object):'
1251 1251 if not asunit:
1252 1252 return t
1253 1253
1254 # If we want a unittest compatible object, we wrap our Test.
1255 1254 class MercurialTest(unittest.TestCase):
1255 def __init__(self, name, *args, **kwargs):
1256 super(MercurialTest, self).__init__(*args, **kwargs)
1257 self.name = name
1258
1259 def shortDescription(self):
1260 return self.name
1261
1256 1262 def runTest(self):
1257 1263 t.run()
1258 1264
1259 return MercurialTest()
1265 return MercurialTest(test)
1260 1266
1261 1267 def _cleanup(self):
1262 1268 """Clean up state from this test invocation."""
General Comments 0
You need to be logged in to leave comments. Login now