1 #!/usr/bin/python 2 # 3 # Copyright 2007 Google Inc. Released under the GPL v2 4 5 """This module provides a means to run all the unittests for autoserv 6 """ 7 8 __author__ = """stutsman (at] google.com (Ryan Stutsman)""" 9 10 import os, sys 11 12 # Adjust the path so Python can find the autoserv modules 13 src = os.path.abspath("%s/.." % (os.path.dirname(sys.argv[0]),)) 14 if src not in sys.path: 15 sys.path.insert(1, src) 16 17 import unittest 18 19 20 import autotest_test 21 import utils_test 22 23 24 def suite(): 25 return unittest.TestSuite([autotest_test.suite(), 26 utils_test.suite()]) 27 28 29 if __name__ == '__main__': 30 unittest.TextTestRunner(verbosity=2).run(suite()) 31