From 431d26444765ceae02d0500af747423d8d36e21c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 13 Sep 2013 08:39:30 -0700 Subject: [PATCH] suite: don't schedule follow-on summary job for an empty run Signed-off-by: Sage Weil --- teuthology/suite.py | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/teuthology/suite.py b/teuthology/suite.py index d140882707d4f..507bf0741e053 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -178,18 +178,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): -- 2.39.5