Ejemplo n.º 1
0
        elif 'int_dvr_ip=' in arg and 'int_dvr_ip=None' not in arg:
            int_dvr_ip = arg.split('int_dvr_ip=')[1]
            params.append('Integration DVR IP:\t%s' % int_dvr_ip)

    # log parameters
    log.trace("Parameters modified:")
    for param in params:
        params[params.index(param)] = param.replace('"', '').replace("'", '')
        log.trace("\t%s" % param)

# execute according to system arguments
if mode == 'cerberus':
    pass
elif mode == 'ixion':
    ixion = Ixion(log)
    ixion.run()

elif mode == 'testscheduling':
    # trigger each test
    for test in tests_to_schedule:
        try:
            builds_triggered = 0

            # determine parameters
            if test.lower().strip() == 'regression full (by feature)':
                # determine all features
                features = db.return_features_for_submodule(2)['features']

                # add a test run for each feature (exclude debug)
                for feature in features[1:]:
                    # build parameters list for feature test run