[rtems-tools commit] teater: Filter out an *.norun.* executables.

Chris Johns chrisj at rtems.org
Tue Apr 10 04:00:15 UTC 2018


Module:    rtems-tools
Branch:    master
Commit:    b7c4753de0c17201be0ca047e2a7e320616132cb
Changeset: http://git.rtems.org/rtems-tools/commit/?id=b7c4753de0c17201be0ca047e2a7e320616132cb

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Apr 10 14:00:09 2018 +1000

teater: Filter out an *.norun.* executables.

---

 tester/rt/test.py | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/tester/rt/test.py b/tester/rt/test.py
index 1a91763..f4d9b5c 100644
--- a/tester/rt/test.py
+++ b/tester/rt/test.py
@@ -1,6 +1,6 @@
 #
 # RTEMS Tools Project (http://www.rtems.org/)
-# Copyright 2013-2014 Chris Johns (chrisj at rtems.org)
+# Copyright 2013-2018 Chris Johns (chrisj at rtems.org)
 # All rights reserved.
 #
 # This file is part of the RTEMS Tools package in 'rtems-tools'.
@@ -171,6 +171,8 @@ def find_executables(paths, glob):
                 for f in files:
                     if fnmatch.fnmatch(f.lower(), glob):
                         executables += [path.join(root, f)]
+    norun = re.compile('.*\.norun.*')
+    executables = [e for e in executables if not norun.match(e)]
     return sorted(executables)
 
 def report_finished(reports, report_mode, reporting, finished, job_trace):
@@ -208,14 +210,6 @@ def _job_trace(tst, msg, total, exe, active, reporting):
                                                 msg,
                                                 reporting, total, exe, s))
 
-def list_bsps(opts):
-    path_ = opts.defaults.expand('%%{_configdir}/bsps/*.mc')
-    bsps = path.collect_files(path_)
-    log.notice(' BSP List:')
-    for bsp in bsps:
-        log.notice('  %s' % (path.basename(bsp[:-3])))
-    raise error.exit()
-
 def killall(tests):
     for test in tests:
         test.kill()




More information about the vc mailing list