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@google.com (Ryan Stutsman)""" 9 10import os, sys 11 12# Adjust the path so Python can find the autoserv modules 13src = os.path.abspath("%s/.." % (os.path.dirname(sys.argv[0]),)) 14if src not in sys.path: 15 sys.path.insert(1, src) 16 17import unittest 18 19 20import autotest_test 21import utils_test 22 23 24def suite(): 25 return unittest.TestSuite([autotest_test.suite(), 26 utils_test.suite()]) 27 28 29if __name__ == '__main__': 30 unittest.TextTestRunner(verbosity=2).run(suite()) 31