!252 [sync] PR-246: 优化dpdk测试项中的大页展示
From: @openeuler-sync-bot Reviewed-by: @ygn-ndwd-official Signed-off-by: @ygn-ndwd-official
This commit is contained in:
commit
1e37146e2e
14
oec-hardware-1.1.6-2-fix-dpdk-show-numa-pages.patch
Normal file
14
oec-hardware-1.1.6-2-fix-dpdk-show-numa-pages.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff -Naur rpm/tests/compatible/dpdk/hugepages.py oech/tests/compatible/dpdk/hugepages.py
|
||||
--- rpm/tests/compatible/dpdk/hugepages.py 2024-09-25 15:21:01.000000000 +0800
|
||||
+++ oech/tests/compatible/dpdk/hugepages.py 2024-10-18 10:06:36.033839943 +0800
|
||||
@@ -62,6 +62,10 @@
|
||||
for numa_path in glob.glob('/sys/devices/system/node/node*'):
|
||||
node = numa_path[29:] # slice after /sys/devices/system/node/node
|
||||
path = os.path.join(numa_path, 'hugepages')
|
||||
+ if not os.path.exists(path):
|
||||
+ self.logger.info("%s doesn't exist" % path)
|
||||
+ continue
|
||||
+
|
||||
for hdir in os.listdir(path):
|
||||
comm = self.command.run_cmd("cat %s/%s/nr_hugepages" % (path, hdir))
|
||||
pages = int(comm[0].strip('\n'))
|
||||
@ -6,7 +6,7 @@
|
||||
Name: oec-hardware
|
||||
Summary: openEuler Hardware Compatibility Test Suite
|
||||
Version: 1.1.6
|
||||
Release: 1
|
||||
Release: 2
|
||||
Group: Development/Tools
|
||||
License: Mulan PSL v2
|
||||
URL: https://gitee.com/openeuler/oec-hardware
|
||||
@ -14,6 +14,7 @@ Source0: https://gitee.com/openeuler/oec-hardware/repository/archive/v%{v
|
||||
|
||||
# patch fix issue
|
||||
Patch0001: oec-hardware-1.1.6-1-fix-bug-raid-test-cannot-identify-PM8222-SHBA.patch
|
||||
Patch0002: oec-hardware-1.1.6-2-fix-dpdk-show-numa-pages.patch
|
||||
|
||||
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
||||
BuildRequires: gcc
|
||||
@ -38,6 +39,7 @@ openEuler Hardware Compatibility Test Server
|
||||
%prep
|
||||
%setup -q -c
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
|
||||
%build
|
||||
%ifarch x86_64 aarch64
|
||||
@ -85,6 +87,9 @@ sed -i 's#grep openeulerversion /etc/openEuler-latest#grep %{vendor_lowercase}ve
|
||||
rm -rf /var/lock/oech.lock
|
||||
|
||||
%changelog
|
||||
* Fri Oct 18 2024 xieguangyao00 <xieguangyao@inspur.com> - 1.1.6-2
|
||||
- Fix the bug that dpdk test terminates when accessing numa node hugepages directory
|
||||
|
||||
* Tue Oct 15 2024 xiaochn <xiaochuannan@inspur.com> - 1.1.6-1
|
||||
- Fix bug that the raid test cannot identify PM8222-SHBA
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user