diff options
author | Chris Johns <chrisj@rtems.org> | 2017-04-19 13:01:26 +1000 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-04-19 13:01:26 +1000 |
commit | 3d803afef2b13cb526115a2fb2602be3bbf75f9f (patch) | |
tree | f6dfddfbf33280314e1de88f1a58a332d1a419ea /tools/build/rtems-test-check-py | |
parent | libmisc/monitor: Correctly print unlimited configuration table entries. (diff) | |
download | rtems-3d803afef2b13cb526115a2fb2602be3bbf75f9f.tar.bz2 |
testsuite: Fix rtems-test-check-py when a BSP has no tcfg file.
Updates #2981.
Diffstat (limited to 'tools/build/rtems-test-check-py')
-rwxr-xr-x | tools/build/rtems-test-check-py | 8 |
1 files changed, 7 insertions, 1 deletions
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): |