~juju-qa/juju-ci-tools/trunk

« back to all changes in this revision

Viewing changes to gotestwin.py

  • Committer: Curtis Hovey
  • Date: 2016-06-14 00:46:29 UTC
  • mto: This revision was merged to the branch mainline in revision 1855.
  • Revision ID: curtis@canonical.com-20160614004629-s5qywybkj7lg1lei
Replace all jujuci.py.get call with s3ci.py.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
                        help='The package to test.')
20
20
    args = parser.parse_args()
21
21
 
22
 
    juju_ci_path = join(scripts, 'jujuci.py')
 
22
    s3_ci_path = join(scripts, 's3ci.py')
23
23
    downloaded = subprocess.check_output([
24
 
        juju_ci_path, 'get', '-b', args.revision, 'build-revision', '*.tar.gz',
25
 
        './'])
26
 
    (tarfile,) = [basename(l) for l in downloaded.splitlines()]
 
24
        s3_ci_path, 'get', args.revision, 'build-revision',
 
25
        'juju_core.*.tar.gz', './'])
 
26
    tarfile = basename(downloaded)
27
27
 
28
 
    subprocess.check_call([
29
 
        juju_ci_path, 'get-build-vars', '--summary', args.revision])
 
28
    job_name = os.environ.get('job_name', 'GoTestWin')
 
29
    subprocess.check_call([s3_ci_path, 'get-summary', args.revision, job_name])
30
30
    with open('temp-config.yaml', 'w') as temp_file:
31
31
        dump({
32
32
            'install': {'ci': [