~kissiel/checkbox/validation-rework

« back to all changes in this revision

Viewing changes to checkbox-touch/build-me

"automatic merge of lp:~kissiel/checkbox/sanitary-c-c-build/ by tarmac [r=sylvain-pineau][bug=][author=kissiel]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
                exec_flags=('--autopilot '
206
206
                            '--launcher=/tmp/checkbox_autopilot_launcher'))
207
207
 
208
 
        if not os.path.exists('../build-cbt'):
209
 
            os.makedirs('../build-cbt')
210
 
 
211
208
        pkg = build_click()
212
209
 
213
210
    if args.install and not args.ssh:
451
448
 
452
449
def build_click():
453
450
    print('Building click package')
454
 
    base_path = os.path.normpath(os.path.join(os.getcwd(), '..'))
455
 
    click_source_path = os.path.join(base_path, 'checkbox-touch')
456
 
    out = subprocess.check_output(
457
 
        ['click', 'build', click_source_path],
458
 
        cwd=os.path.join(base_path, 'build-cbt'))
459
 
    pkg_name = os.path.join(
460
 
        base_path, 'build-cbt', re.search(
461
 
            "'\.\/(.*)\.click'", str(out)).group(1) + '.click')
 
451
    out = subprocess.check_output(['click', 'build', '-I', '*.click', '.'])
 
452
    pkg_name = re.search("'\.\/(.*)\.click'", str(out)).group(1) + '.click'
462
453
    print('Your click package is available here: {0}'.format(pkg_name))
463
454
    return pkg_name
464
455