From 4eb986501b080a4d049489e69bffa97521ca6230 Mon Sep 17 00:00:00 2001 From: gaochuanji Date: Wed, 14 Aug 2024 14:20:33 +0800 Subject: [PATCH] add patch-5 --- ...rdware-1.1.5-5-fix-cpufreq-userspace.patch | 19 +++++++++++++++++++ oec-hardware.spec | 7 ++++++- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch diff --git a/oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch b/oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch new file mode 100644 index 0000000..b9a9c42 --- /dev/null +++ b/oec-hardware-1.1.5-5-fix-cpufreq-userspace.patch @@ -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() + + diff --git a/oec-hardware.spec b/oec-hardware.spec index ae2d9ce..9a26467 100644 --- a/oec-hardware.spec +++ b/oec-hardware.spec @@ -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 - 1.1.5-5 +- Resolve the issue of failed userspace testing for cpufreq on certain models + * Fri Jun 7 2024 xiaochn - 1.1.5-4 - Resolve the issue of executing Vulkan even if DISPLAY is not defined in the env -- Gitee