]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Fix return from schedule_suite. 316/head
authorWarren Usui <warren.usui@inktank.com>
Wed, 20 Aug 2014 20:19:13 +0000 (13:19 -0700)
committerWarren Usui <warren.usui@inktank.com>
Wed, 20 Aug 2014 20:19:13 +0000 (13:19 -0700)
Schedule_suite returns the number of jobs scheduled (accounting for
filters).  Information displayed also indicates how many jobs were
run and how many were filtered out.

Fixes: 9183
Signed-off-by: Warren Usui <warren.usui@inktank.com>
teuthology/suite.py

index 31ed4fbb70fb19eee70ddb54b297d54032ba4a32..b32fc2a59b0dc21028f86a98116411108dc1ccdf 100644 (file)
@@ -454,8 +454,7 @@ def schedule_suite(job_config,
     log.debug('Suite %s in %s' % (suite_name, path))
     configs = [(combine_path(suite_name, item[0]), item[1]) for item in
                build_matrix(path)]
-    job_count = len(configs)
-    log.info('Suite %s in %s generated %d jobs' % (
+    log.info('Suite %s in %s generated %d jobs (not yet filtered)' % (
         suite_name, path, len(configs)))
 
     for description, fragment_paths in configs:
@@ -524,7 +523,10 @@ def schedule_suite(job_config,
                 args=arg,
             )
         count += 1
-    return job_count
+    log.info('Suite %s in %s scheduled %d jobs.' % (suite_name, path, count))
+    log.info('Suite %s in %s -- %d jobs were filtered out.' % (suite_name,
+              path, len(configs) - count))
+    return count
 
 
 def combine_path(left, right):