summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorThomas Kluyver <takowl@gmail.com>2013-09-25 18:55:02 -0700
committerThomas Kluyver <takowl@gmail.com>2013-09-25 18:55:02 -0700
commit01363e4f994cef9dd0eb2f8976c34e5f16af3f8e (patch)
treee7f3205c3933082df1c2ecbc989b76215eb2bea1 /tools
parent46b457f753cc5976d9f6094cfc825b2b20f4acd9 (diff)
downloadpexpect-git-01363e4f994cef9dd0eb2f8976c34e5f16af3f8e.tar.gz
Don't run performance tests on Travis
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testall.py6
1 files changed, 6 insertions, 0 deletions
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