]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: don't schedule follow-on summary job for an empty run 91/head
authorSage Weil <sage@inktank.com>
Fri, 13 Sep 2013 15:39:30 +0000 (08:39 -0700)
committerSage Weil <sage@inktank.com>
Fri, 13 Sep 2013 15:39:30 +0000 (08:39 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/suite.py

index 125fd91cfff4addf4eb5d7ec38312fea9b5d859d..d2bcb549fddd70ca361213f28fe75e12db4da87a 100644 (file)
@@ -180,18 +180,19 @@ combination, and will override anything in the suite.
                     args=arg,
                     )
 
-    arg = copy.deepcopy(base_arg)
-    arg.append('--last-in-suite')
-    if args.email:
-        arg.extend(['--email', args.email])
-    if args.timeout:
-        arg.extend(['--timeout', args.timeout])
-    if args.dry_run:
-        log.info('dry-run: %s' % ' '.join(arg))
-    else:
-        subprocess.check_call(
-            args=arg,
-            )
+    if num_jobs:
+        arg = copy.deepcopy(base_arg)
+        arg.append('--last-in-suite')
+        if args.email:
+            arg.extend(['--email', args.email])
+        if args.timeout:
+            arg.extend(['--timeout', args.timeout])
+        if args.dry_run:
+            log.info('dry-run: %s' % ' '.join(arg))
+        else:
+            subprocess.check_call(
+                args=arg,
+                )
 
 
 def combine_path(left, right):