Fail tests if the user is not 'test' (add message).
authorAntony Chazapis <chazapis@gmail.com>
Mon, 5 Sep 2011 10:56:02 +0000 (13:56 +0300)
committerAntony Chazapis <chazapis@gmail.com>
Mon, 5 Sep 2011 10:56:02 +0000 (13:56 +0300)
tools/test

index ff9e89c..111dd62 100755 (executable)
@@ -2085,3 +2085,5 @@ o_names = ['kate.jpg',
 if __name__ == "__main__":
     if get_user() == 'test':
         unittest.main()
+    else:
+        print 'Will not run tests as any other user except \'test\' (current user: %s).' % get_user()