run-tests: loadable as module stable
authorSimon Heimberg <simohe@besonet.ch>
Tue, 01 Feb 2011 20:47:05 +0100
branchstable
changeset 877 c2ca6e172fd8
parent 876 20db7f6aba9a
child 878 e1a93489159d
run-tests: loadable as module [ original upstream message ]
tests/run-tests.py
--- a/tests/run-tests.py	Wed Jan 26 17:49:11 2011 +0000
+++ b/tests/run-tests.py	Tue Feb 01 20:47:05 2011 +0100
@@ -1109,4 +1109,5 @@
         time.sleep(1)
         cleanup(options)
 
-main()
+if __name__ == '__main__':
+    main()