Source

repoman / tests / output / metadata.py

Full commit
import os
import shutil
from tests.pytest import run, Quiet

myforest = 'metadata'

with Quiet():
    run('clone ../forest1 -M * -b * -d %s' % myforest)
os.chdir(myforest)

try:
    os.mkdir('.root/branches/life')
    with open('.root/branches/life/.keep', 'w') as fd:
        fd.write('keep')
        
    run('metadata --solutions --branches core/dev')
    run('metadata')
    run('metadata --solutions -S')
    run('metadata --branches **')
    run('metadata --branches *')
finally:
    os.chdir('..')

try:
    shutil.rmtree(myforest)
except:
    pass