[SWDEV-451960] [WIP] Add Pytest
Updates: - Added pytest to shared/pytest folder - User can execute tests: [pytest] python3 -m pytest -p no:cacheprovider /opt/rocm/share/amd_smi/tests/pytest/unit_tests.py -s -v python3 -m pytest -p no:cacheprovider /opt/rocm/share/amd_smi/tests/pytest/integration_test.py -s -v [unittest] /opt/rocm/share/amd_smi/tests/pytest/unit_tests.py -v /opt/rocm/share/amd_smi/tests/pytest/integration_test.py -v - Automatically installs pytest Change-Id: Ia3281a9608aeeb803b91f8b83f87ff84b01037f4 Signed-off-by: Charis Poag <Charis.Poag@amd.com>
Este cometimento está contido em:
cometido por
Ryo Ficano
ascendente
b05849dad0
cometimento
d9d6637cb7
@@ -470,7 +470,7 @@ amdsmi_status_t amdsmi_get_gpu_board_info(amdsmi_processor_handle processor_hand
|
||||
LOG_INFO(ss);
|
||||
}
|
||||
|
||||
ss << __PRETTY_FUNCTION__ << "[After rocm smi correction] "
|
||||
ss << __PRETTY_FUNCTION__ << " | [After rocm smi correction] "
|
||||
<< "Returning status = AMDSMI_STATUS_SUCCESS"
|
||||
<< "\n; info->model_number: |" << board_info->model_number << "|"
|
||||
<< "\n; info->product_serial: |" << board_info->product_serial << "|"
|
||||
@@ -751,10 +751,9 @@ amdsmi_get_gpu_asic_info(amdsmi_processor_handle processor_handle, amdsmi_asic_i
|
||||
}
|
||||
|
||||
// default to 0xffff as not supported
|
||||
info->oam_id = std::numeric_limits<uint32_t>::max();
|
||||
info->oam_id = std::numeric_limits<uint16_t>::max();
|
||||
uint16_t tmp_oam_id = 0;
|
||||
status = rsmi_wrapper(rsmi_dev_oam_id_get, processor_handle,
|
||||
&(tmp_oam_id));
|
||||
status = rsmi_wrapper(rsmi_dev_oam_id_get, processor_handle, &(tmp_oam_id));
|
||||
info->oam_id = tmp_oam_id;
|
||||
|
||||
// default to 0xffffffff as not supported
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador