changeset 21377:71081f7f9e52

run-tests: eliminate main()
author Gregory Szorc <gregory.szorc@gmail.com>
date Sun, 20 Apr 2014 10:09:23 -0700
parents e4366bc08879
children f7ac3c63d844
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun Apr 20 10:08:33 2014 -0700
+++ b/tests/run-tests.py	Sun Apr 20 10:09:23 2014 -0700
@@ -1461,10 +1461,6 @@
             else:
                 print "WARNING: Did not find prerequisite tool: %s " % p
 
-def main(args, runner=None, parser=None):
-    runner = runner or TestRunner()
-
-    return runner.run(args, parser=parser)
-
 if __name__ == '__main__':
-    sys.exit(main(sys.argv[1:]))
+    runner = TestRunner()
+    sys.exit(runner.run(sys.argv[1:]))