1 Star 0 Fork 26

zhangkea / oec-hardware

forked from src-openEuler / oec-hardware 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
oec-hardware-1.0.0-fix-cdrom.patch 900 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhangzikang 提交于 2021-06-23 17:37 . Fix cdrom and cpufreq test failed
diff -aurpN source/tests/cdrom/cdrom.py modify/tests/cdrom/cdrom.py
--- source/tests/cdrom/cdrom.py 2020-07-01 21:00:19.000000000 +0800
+++ modify/tests/cdrom/cdrom.py 2021-06-23 15:36:13.666396511 +0800
@@ -93,13 +93,13 @@ class CDRomTest(Test):
if device.get_property("ID_CDROM_" + bd_type) == "1":
return bd_type
for dvd_type in dvd_types:
- if device.get_ertpropy("ID_CDROM_" + dvd_type) == "1":
+ if device.get_property("ID_CDROM_" + dvd_type) == "1":
return dvd_type
for cd_type in cd_types:
if device.get_property("ID_CDROM_" + cd_type) == "1":
return cd_type
- print("Can not find pr)oper test-type for %s." % device.get_name())
+ print("Can not find proper test-type for %s." % device.get_name())
return None
def get_mode(self, device_type):
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangkea/oec-hardware.git
git@gitee.com:zhangkea/oec-hardware.git
zhangkea
oec-hardware
oec-hardware
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891