From 3d803afef2b13cb526115a2fb2602be3bbf75f9f Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 19 Apr 2017 13:01:26 +1000 Subject: testsuite: Fix rtems-test-check-py when a BSP has no tcfg file. Updates #2981. --- tools/build/rtems-test-check-py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/build/rtems-test-check-py b/tools/build/rtems-test-check-py index 5cf957049f..847aab05ae 100755 --- a/tools/build/rtems-test-check-py +++ b/tools/build/rtems-test-check-py @@ -46,6 +46,9 @@ includepaths = sys.argv[args + 4].split(':') testconfig = [find_testdata(includepaths, sys.argv[args + 3])] tests = sys.argv[args + 5:] +if verbose: + eprint('cmd: %s' % (' '.join(sys.argv))) + # # Handle the modes. # @@ -82,7 +85,8 @@ testdata = {} if verbose: eprint('mode: %s' % (mode)) - eprint('testconfig: %s' % (', '.join(testconfig))) + eprint('testconfig: %r' % (testconfig)) + eprint('testconfig: %s' % (', '.join([x for x in testconfig if x is not None]))) eprint('includepaths: %s' % (includepaths)) eprint('bsp: %s' % (bsp)) eprint('tests: %s' % (', '.join(tests))) @@ -100,6 +104,8 @@ def clean(line): while len(testconfig): tc = testconfig[0] testconfig.remove(tc) + if tc is None: + continue if verbose: eprint('reading: %s' % (tc)) if not os.path.exists(tc): -- cgit v1.2.3