blob: 5f42e29dc216ec7d92a73fa153993f41af01c298 [file] [log] [blame]
#!/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$
from __future__ import print_function
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 not result.wasSuccessful():
sys.exit(1)