def main():
    console.concise('Test started')
    behaviors = ['salt.daemons.flo', 'salt.daemons.test.plan']
    failedCount = 0
    plans = getPlanFiles()
    for plan in plans:
        name, ext = os.path.splitext(os.path.basename(plan))
        skeddar = ioflo.app.run.run(name=name,
                            filepath=plan,
                            behaviors=behaviors,
                            period=0.0625,
                            verbose=1,
                            real=False,)

        print('Plan {0}\n  Skeddar {1}\n'.format(plan, skeddar.name))
        failed = False
        for house in skeddar.houses:
            failure = house.metas['failure'].value
            if failure:
                failed = True
                print('**** Failed in House = {0}. '
                      'Failure = {1}.\n'.format(house.name, failure))
            else:
                print('**** Succeeded in House = {0}.\n'.format(house.name))
        if failed:
            failedCount += 1

    print('{0} failed out of {1}.\n'.format(failedCount, len(plans)))
Run example scripts
dataset/ETHPy150Open saltstack/salt/salt/daemons/test/test_plans.py/main