aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2013-02-09 01:07:12 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2013-02-09 01:07:12 +0200
commitda2e9f6688ea9545ccc056195ea36421e3e019aa (patch)
treed85f54e405705ce7285d60866af3070d41246c3a
parent7a19918024335e88573f49c91591e5d428d3d37d (diff)
downloadmeson-da2e9f6688ea9545ccc056195ea36421e3e019aa.zip
meson-da2e9f6688ea9545ccc056195ea36421e3e019aa.tar.gz
meson-da2e9f6688ea9545ccc056195ea36421e3e019aa.tar.bz2
Run tests in numerical rather than ASCIIbetical order.
-rwxr-xr-xrun_tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/run_tests.py b/run_tests.py
index fcf56a6..a8c733b 100755
--- a/run_tests.py
+++ b/run_tests.py
@@ -48,8 +48,10 @@ def run_test(testdir):
raise RuntimeError('Running install failed.')
def run_tests():
- tests = glob('test cases/*')
- tests.sort()
+ tests = [t.split('/', 1)[1] for t in glob('test cases/*')]
+ testlist = [(int(t.split()[0]), t) for t in tests]
+ testlist.sort()
+ tests = [os.path.join('test cases', t[1]) for t in testlist]
try:
os.mkdir(test_build_dir)
except OSError: