コード例 #1
0
ファイル: tests.py プロジェクト: CIRCL/miccheck
    def run(self): # not static because it is a device test
        device = MicDevice(self._dev_num)

        built_smcver = _miccheck.__smc_fw_version__
        live_smcver = device.mic_get_smc_fwversion()

        if built_smcver != live_smcver or not built_smcver:
            raise ex.FailedTestException('device SMC firmware version does not'
                                          ' match, should be \'{0}\','
                                          ' it is \'{1}\'.'.
                                          format(built_smcver, live_smcver))
        else:
            prnt.p_out_debug('    device SMC firmware version: \'{0}\''.
                             format(live_smcver))