From 4ecfee960a1cd5c60f223226b8edb69ffcf62529 Mon Sep 17 00:00:00 2001 From: Paul Brossier Date: Fri, 16 May 2008 20:20:03 +0200 Subject: [PATCH] tests/python/run_all_tests: add a warning if list_of_test_files returns no matches, localaubio first --- tests/python/run_all_tests | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/python/run_all_tests b/tests/python/run_all_tests index f1612243..68caefb2 100755 --- a/tests/python/run_all_tests +++ b/tests/python/run_all_tests @@ -4,9 +4,12 @@ import unittest from glob import glob def list_of_test_files(path): - return [i.split('.')[0].replace('/','.') for i in glob(path)] + matches = glob(path) + if not matches: print "WARNING: no matches for %s" % path + return [i.split('.')[0].replace('/','.') for i in matches] modules_to_test = [] +modules_to_test += ['localaubio'] modules_to_test += list_of_test_files('src/*.py') modules_to_test += list_of_test_files('src/*/*.py') modules_to_test += list_of_test_files('examples/aubio*.py') -- 2.26.2