summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-08-28 19:59:01 -0700
committerZac Medico <zmedico@gentoo.org>2011-08-28 19:59:01 -0700
commitab21cd451955ff7ed9419ffdbe3dc34bbb397281 (patch)
tree853d2ae3629a1afdb066cfd29e2a2fe29a6d30ad /pym
parent5bc6b9c8767c9a9bea511d7ece98f54e8a873b47 (diff)
downloadportage-ab21cd451955ff7ed9419ffdbe3dc34bbb397281.tar.gz
portage-ab21cd451955ff7ed9419ffdbe3dc34bbb397281.tar.bz2
portage-ab21cd451955ff7ed9419ffdbe3dc34bbb397281.zip
Sort test cases, for predictable order.
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/tests/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/portage/tests/__init__.py b/pym/portage/tests/__init__.py
index 6f21d10bd..dcf73bab6 100644
--- a/pym/portage/tests/__init__.py
+++ b/pym/portage/tests/__init__.py
@@ -42,6 +42,7 @@ def main():
if TEST_FILE in files:
testDirs.append(root)
+ testDirs.sort()
for mydir in testDirs:
suite.addTests(getTests(os.path.join(basedir, mydir), basedir) )
return TextTestRunner(verbosity=2).run(suite)
@@ -86,6 +87,7 @@ def getTests(path, base_path):
"""
files = os.listdir(path)
files = [ f[:-3] for f in files if f.startswith("test") and f.endswith(".py") ]
+ files.sort()
parent_path = path[len(base_path)+1:]
parent_module = ".".join(("portage", "tests", parent_path))
parent_module = parent_module.replace('/', '.')