From 01363e4f994cef9dd0eb2f8976c34e5f16af3f8e Mon Sep 17 00:00:00 2001 From: Thomas Kluyver Date: Wed, 25 Sep 2013 18:55:02 -0700 Subject: Don't run performance tests on Travis --- tools/testall.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools') diff --git a/tools/testall.py b/tools/testall.py index a7ff9eb..c52a421 100755 --- a/tools/testall.py +++ b/tools/testall.py @@ -39,6 +39,9 @@ import pexpect print("Testing pexpect %s using python %s:" % ( pexpect.__version__, platform.python_version())) +# Don't bother checking performance on Travis, we know it's slow. +TEST_PERFORMANCE = 'TRAVIS' not in os.environ + def add_tests_to_list (import_list, dirname, names): # Only check directories named 'tests'. if os.path.basename(dirname) != 'tests': @@ -48,6 +51,8 @@ def add_tests_to_list (import_list, dirname, names): filename, ext = os.path.splitext(f) if ext != '.py': continue + if (not TEST_PERFORMANCE) and (filename == 'test_performance'): + continue if filename.find('test_') == 0: import_list.append (os.path.join(dirname, filename)) @@ -65,6 +70,7 @@ def find_modules_and_add_paths (root_path): sys.path.append (path) if not os.path.dirname(path) in sys.path: sys.path.append (os.path.dirname(path)) + module_list.sort() return module_list -- cgit v1.2.1