From 020900ac6655ad289d46e01e8198f6956ef783a9 Mon Sep 17 00:00:00 2001 From: Frederic Peters Date: Sun, 25 Jul 2004 12:51:43 +0000 Subject: login_tests.py can be executed without tests.py --- python/tests/login_tests.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'python') diff --git a/python/tests/login_tests.py b/python/tests/login_tests.py index 80f0f489..443ddd0e 100644 --- a/python/tests/login_tests.py +++ b/python/tests/login_tests.py @@ -27,6 +27,11 @@ import unittest +import sys + +sys.path.insert(0, '..') +sys.path.insert(0, '../.libs') + import lasso lasso.init() @@ -194,5 +199,5 @@ suite1 = unittest.makeSuite(LoginTestCase, 'test') allTests = unittest.TestSuite((suite1,)) if __name__ == '__main__': - unittest.TextTestRunner(verbosity=2).run(allTests) + sys.exit(not unittest.TextTestRunner(verbosity=2).run(allTests).wasSuccessful()) -- cgit