diff options
Diffstat (limited to 'scripts/patchtest')
-rwxr-xr-x | scripts/patchtest | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/patchtest b/scripts/patchtest index 9525a2be17..b25ef18321 100755 --- a/scripts/patchtest +++ b/scripts/patchtest | |||
@@ -142,7 +142,7 @@ def _runner(resultklass, prefix=None): | |||
142 | loader.testMethodPrefix = prefix | 142 | loader.testMethodPrefix = prefix |
143 | 143 | ||
144 | # create the suite with discovered tests and the corresponding runner | 144 | # create the suite with discovered tests and the corresponding runner |
145 | suite = loader.discover(start_dir=PatchTestInput.startdir, pattern=PatchTestInput.pattern, top_level_dir=PatchTestInput.topdir) | 145 | suite = loader.discover(start_dir=PatchTestInput.testdir, pattern=PatchTestInput.pattern, top_level_dir=PatchTestInput.topdir) |
146 | ntc = suite.countTestCases() | 146 | ntc = suite.countTestCases() |
147 | 147 | ||
148 | # if there are no test cases, just quit | 148 | # if there are no test cases, just quit |
@@ -220,9 +220,9 @@ if __name__ == '__main__': | |||
220 | if PatchTestInput.debug: | 220 | if PatchTestInput.debug: |
221 | logger.setLevel(logging.DEBUG) | 221 | logger.setLevel(logging.DEBUG) |
222 | 222 | ||
223 | # if topdir not define, default it to startdir | 223 | # if topdir not define, default it to testdir |
224 | if not PatchTestInput.topdir: | 224 | if not PatchTestInput.topdir: |
225 | PatchTestInput.topdir = PatchTestInput.startdir | 225 | PatchTestInput.topdir = PatchTestInput.testdir |
226 | 226 | ||
227 | try: | 227 | try: |
228 | ret = main() | 228 | ret = main() |