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 0000000000000000000000000000000000000000..b9a9c4242d9c2eaac09ebc4fb1766b07430822c9 --- /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 ae2d9ced259b1d90c0edda39097a298a65270c8e..9a2646764f2d73ada7211652747dc229396c1f81 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