Skip to content

Commit

Permalink
return tuple from jobset.run when skipping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Mar 10, 2017
1 parent 9e87834 commit d159af3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/run_tests/python_utils/jobset.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,13 @@ def run(cmdlines,
skip_jobs=False,
quiet_success=False):
if skip_jobs:
results = {}
resultset = {}
skipped_job_result = JobResult()
skipped_job_result.state = 'SKIPPED'
for job in cmdlines:
message('SKIPPED', job.shortname, do_newline=True)
results[job.shortname] = [skipped_job_result]
return results
resultset[job.shortname] = [skipped_job_result]
return 0, resultset
js = Jobset(check_cancelled,
maxjobs if maxjobs is not None else _DEFAULT_MAX_JOBS,
newline_on_success, travis, stop_on_failure, add_env,
Expand Down

0 comments on commit d159af3

Please sign in to comment.