add patch-5

This commit is contained in:
gaochuanji 2024-08-14 14:20:33 +08:00
parent 0cef575e76
commit 4eb986501b
2 changed files with 25 additions and 1 deletions

View 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()

View File

@ -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