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