!224 解决在某些机型下cpufreq的userspace测试项测试失败的问题
From: @gaochuanji Reviewed-by: @ygn-ndwd-official Signed-off-by: @ygn-ndwd-official
This commit is contained in:
commit
7b80b7d64f
19
oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch
Normal file
19
oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch
Normal file
@ -0,0 +1,19 @@
|
||||
diff -Naur rpm/tests/compatible/cpufreq/cal.py oech/tests/compatible/cpufreq/cal.py
|
||||
--- rpm/tests/compatible/cpufreq/cal.py 2024-08-14 11:28:15.885339696 +0800
|
||||
+++ oech/tests/compatible/cpufreq/cal.py 2024-08-14 11:29:13.689645189 +0800
|
||||
@@ -14,13 +14,14 @@
|
||||
|
||||
import decimal
|
||||
import time
|
||||
+COUNT = 10000
|
||||
|
||||
|
||||
def cal():
|
||||
"""Call test_case"""
|
||||
decimal.getcontext().prec = 1000
|
||||
one = decimal.Decimal(1)
|
||||
- for i in range(1000):
|
||||
+ for i in range(COUNT):
|
||||
(i * one).sqrt()
|
||||
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
Name: oec-hardware
|
||||
Summary: openEuler Hardware Compatibility Test Suite
|
||||
Version: 1.1.5
|
||||
Release: 4
|
||||
Release: 5
|
||||
Group: Development/Tools
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/oec-hardware
|
||||
@ -17,6 +17,7 @@ Patch0001: oec-hardware-1.1.5-1-add-virtual-branch-fix-bug.patch
|
||||
Patch0002: oec-hardware-1.1.5-2-fix-bug.patch
|
||||
Patch0003: oec-hardware-1.1.5-3-functional-optimization-fix-bug.patch
|
||||
Patch0004: oec-hardware-1.1.5-4-fix-gpu-testcase-bug.patch
|
||||
Patch0005: oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch
|
||||
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: gcc
|
||||
@ -44,6 +45,7 @@ openEuler Hardware Compatibility Test Server
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
|
||||
%build
|
||||
%ifarch x86_64 aarch64
|
||||
@ -91,6 +93,9 @@ sed -i 's#grep openeulerversion /etc/openEuler-latest#grep %{vendor_lowercase}ve
|
||||
rm -rf /var/lock/oech.lock
|
||||
|
||||
%changelog
|
||||
* Tue Aug 13 2024 gaochuanji <gaochuanji@inspur.com> - 1.1.5-5
|
||||
- Resolve the issue of failed userspace testing for cpufreq on certain models
|
||||
|
||||
* Fri Jun 7 2024 xiaochn <xiaochuannan@inspur.com> - 1.1.5-4
|
||||
- Resolve the issue of executing Vulkan even if DISPLAY is not defined in the env
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user