[pypy-commit] pypy default: refactor this a bit and split few more dirs
fijal
noreply at buildbot.pypy.org
Mon May 21 18:48:28 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch:
Changeset: r55149:f02ea87c3749
Date: 2012-05-21 18:48 +0200
http://bitbucket.org/pypy/pypy/changeset/f02ea87c3749/
Log: refactor this a bit and split few more dirs
diff --git a/pypy/testrunner_cfg.py b/pypy/testrunner_cfg.py
--- a/pypy/testrunner_cfg.py
+++ b/pypy/testrunner_cfg.py
@@ -1,15 +1,16 @@
# nightly test configuration for the paraller runner
import os
+DIRS_SPLIT = [
+ 'translator/c', 'translator/jvm', 'rlib', 'rpython/memory',
+ 'jit/backend/x86', 'jit/metainterp', 'rpython/test',
+]
+
def collect_one_testdir(testdirs, reldir, tests):
- if (reldir.startswith('translator/c/') or
- reldir.startswith('translator/jvm/') or
- reldir.startswith('rlib/test') or
- reldir.startswith('rpython/memory/') or
- reldir.startswith('jit/backend/x86/') or
- #reldir.startswith('jit/backend/cli') or
- 0):
- testdirs.extend(tests)
+ for dir in DIRS_SPLIT:
+ if reldir.startswith(dir):
+ testdirs.extend(tests)
+ break
else:
testdirs.append(reldir)
More information about the pypy-commit
mailing list