X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/a903e505357b94a27c253778e4e18b6784e62ddf:/pithos/tools/pithos-test..ab0982ad6c707d6cc68bb084bae294de97a12549:/snf-pithos-tools/pithos/tools/test.py diff --git a/pithos/tools/pithos-test b/snf-pithos-tools/pithos/tools/test.py similarity index 99% rename from pithos/tools/pithos-test rename to snf-pithos-tools/pithos/tools/test.py index d5cfdbd..35d5e9c 100755 --- a/pithos/tools/pithos-test +++ b/snf-pithos-tools/pithos/tools/test.py @@ -2114,8 +2114,14 @@ o_names = ['kate.jpg', 'photos/plants/rose.jpg', 'photos/me.jpg'] -if __name__ == "__main__": + +def main(): if get_user() == 'test': unittest.main() else: print 'Will not run tests as any other user except \'test\' (current user: %s).' % get_user() + + +if __name__ == "__main__": + main() +