##// END OF EJS Templates
run-tests: add some docstrings
Gregory Szorc -
r21383:772ed56e default
parent child Browse files
Show More
@@ -128,6 +128,7 b' def parselistfiles(files, listtype, warn'
128 128 return entries
129 129
130 130 def getparser():
131 """Obtain the OptionParser used by the CLI."""
131 132 parser = optparse.OptionParser("%prog [options] [tests]")
132 133
133 134 # keep these sorted
@@ -208,6 +209,7 b' def getparser():'
208 209 return parser
209 210
210 211 def parseargs(args, parser):
212 """Parse arguments with our OptionParser and validate results."""
211 213 (options, args) = parser.parse_args(args)
212 214
213 215 # jython is always pure
@@ -370,6 +372,10 b' class Test(object):'
370 372 shutil.rmtree(self._threadtmp, True)
371 373
372 374 def run(self):
375 """Run this test instance.
376
377 This will return a tuple describing the result of the test.
378 """
373 379 if not os.path.exists(self._path):
374 380 return self.skip("Doesn't exist")
375 381
General Comments 0
You need to be logged in to leave comments. Login now