[rtems commit] testsuite: Fix rtems-test-check-py when a BSP has no tcfg file.

Chris Johns chrisj at rtems.org
Wed Apr 19 03:02:17 UTC 2017


Module:    rtems
Branch:    master
Commit:    3d803afef2b13cb526115a2fb2602be3bbf75f9f
Changeset: http://git.rtems.org/rtems/commit/?id=3d803afef2b13cb526115a2fb2602be3bbf75f9f

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Apr 19 13:01:26 2017 +1000

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 5cf9570..847aab0 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):



More information about the vc mailing list