[asterisk-commits] russell: testsuite/asterisk/trunk r116 - /asterisk/trunk/runtests.py

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 24 05:25:58 CDT 2010


Author: russell
Date: Wed Mar 24 05:25:55 2010
New Revision: 116

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=116
Log:
Don't sys.exit() from main()

Modified:
    asterisk/trunk/runtests.py

Modified: asterisk/trunk/runtests.py
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/runtests.py?view=diff&rev=116&r1=115&r2=116
==============================================================================
--- asterisk/trunk/runtests.py (original)
+++ asterisk/trunk/runtests.py Wed Mar 24 05:25:55 2010
@@ -254,12 +254,12 @@
     if options.list_tests is True:
         print "Asterisk Version: %s\n" % str(ast_version)
         print test_suite
-        sys.exit(0)
+        return 0
 
     if os.geteuid() != 0:
         print "You must run this script as root."
         print BIG_WARNING
-        sys.exit(1)
+        return 1
 
     print "Running tests for Asterisk %s ...\n" % str(ast_version)
 
@@ -281,4 +281,4 @@
 
 
 if __name__ == "__main__":
-    main()
+    sys.exit(main() or 0)




More information about the asterisk-commits mailing list