From e0a0ceb7894553971170bdcce81b9dbd573d2c27 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Aug 30 2013 09:23:34 +0000 Subject: Get rid of old unmaintained run-tests.py --- diff --git a/test/run-tests.py b/test/run-tests.py deleted file mode 100755 index 15bdacd..0000000 --- a/test/run-tests.py +++ /dev/null @@ -1,50 +0,0 @@ -#!/usr/bin/env python -# -# Run all tests, python version -# -# See: README.test for howto -# -# pylint: disable=C0103,W0611 - -''' Run tests wrapper module. ''' - -import os -import sys -import unittest2 as unittest - -import srcpath # pylint: disable=W0611 -from FedoraReview import Mock - -from test_misc import TestMisc -from test_bugzilla import TestBugzilla -from test_checks import TestChecks -from test_R_checks import TestRChecks -from test_options import TestOptions -from test_dist import TestDist -from test_ext import TestExt -from test_regressions import TestRegressions - -VERBOSITY = 2 - -import fr_testcase - -if fr_testcase.NO_NET: - print "Warning: No network available, only some tests run" -if not 'REVIEW_LOGLEVEL' in os.environ: - print "Warning: REVIEW_LOGLEVEL not set, lot's of output ahead." -if fr_testcase.FAST_TEST: - print "Warning: slow tests skipped" - -export PATH=/bin:/usr/bin:/sbin:/usr/sbin -Mock.init() - -testFail = 0 -for t in 'Misc', 'Bugzilla', 'Ext', 'Options', 'Checks', 'RChecks', \ - 'Regressions', 'Dist', 'Deps': - test = eval('unittest.TestLoader().loadTestsFromTestCase(Test%s)' % t) - result = unittest.TextTestRunner(verbosity=VERBOSITY).run(test) - testFail = testFail + len(result.errors) + len(result.failures) - -sys.exit(testFail) - -# vim: set expandtab ts=4 sw=4: