The upgrade tasks specify 'branch' in the job file, but the
schedule_suite.sh script sets a sha1 in the overrides. Make
the upgrade tests actually test an upgrade by preferring branch
over sha1 when both are specified.
This is fragile, but ought to do the trick for now!
Signed-off-by: Sage Weil <sage@inktank.com>
uri = None
log.info('config is %s', config)
- if config.get('sha1') is not None:
- uri = 'sha1/' + config.get('sha1')
- elif config.get('tag') is not None:
+ if config.get('tag') is not None:
uri = 'ref/' + config.get('tag')
elif config.get('branch') is not None:
uri = 'ref/' + config.get('branch')
+ elif config.get('sha1') is not None:
+ uri = 'sha1/' + config.get('sha1')
else:
uri = 'ref/master'
retval['uri'] = uri