run-tests: eliminate main()
authorGregory Szorc <gregory.szorc@gmail.com>
Sun, 20 Apr 2014 10:09:23 -0700
changeset 21377 71081f7f9e52
parent 21376 e4366bc08879
child 21378 f7ac3c63d844
run-tests: eliminate main()
tests/run-tests.py
--- 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:]))