diff options
Diffstat (limited to 'pym/portage/tests/runTests')
-rwxr-xr-x | pym/portage/tests/runTests | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/pym/portage/tests/runTests b/pym/portage/tests/runTests new file mode 100755 index 000000000..6781796f8 --- /dev/null +++ b/pym/portage/tests/runTests @@ -0,0 +1,20 @@ +#!/usr/bin/python +# runTests.py -- Portage Unit Test Functionality +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + + +import os, sys +import os.path as osp + +# Insert our parent dir so we can do shiny import "tests" +# This line courtesy of Marienz and Pkgcore ;) +sys.path.insert(0, osp.dirname(osp.dirname(osp.dirname(osp.abspath(__file__))))) + +import portage.tests as tests + +if __name__ == "__main__": + result = tests.main() + if result.failures: + sys.exit(1) |