if result == script.RESULT_FAIL:
            rc = 1

    except Exception, e:
        ts.log_error('Test script exception: %s' % traceback.format_exc())
        rc = 1

    sys.exit(rc)


info = script.ScriptInfo(name=os.path.basename(__file__),
                         run=run,
                         version='1.0.0')

# DER
der.params(info)

info.logo('sunspec.gif')


def script_info():

    return info


if __name__ == "__main__":

    # stand alone invocation
    config_file = None
    if len(sys.argv) > 1:
        config_file = sys.argv[1]
Esempio n. 2
0
        if result == script.RESULT_FAIL:
            rc = 1

    except Exception, e:
        ts.log_error('Test script exception: %s' % traceback.format_exc())
        rc = 1

    sys.exit(rc)


info = script.ScriptInfo(name=os.path.basename(__file__),
                         run=run,
                         version='1.0.0')

# DER
der.params(info, id=1, label='EUT 1')
der.params(info, id=2, label='EUT 2')
der.params(info, id=3, label='EUT 3')

info.logo('sunspec.gif')


def script_info():

    return info


if __name__ == "__main__":

    # stand alone invocation
    config_file = None