oec-hardware/oec-hardware-1.1.3-fix-disk.patch
cuixucui c78ab1e604 Add default values to parameters of the get_disk function
(cherry picked from commit 823a2d672c0a9505f356180a31a2761705dc91b6)
2022-10-26 15:22:31 +08:00

25 lines
950 B
Diff

diff -Naur rpm/tests/disk/common.py oech/tests/disk/common.py
--- rpm/tests/disk/common.py 2022-10-26 19:50:53.857748470 +0800
+++ oech/tests/disk/common.py 2022-10-26 19:38:37.545748470 +0800
@@ -39,7 +39,7 @@
command.run_cmd("cat /proc/mdstat")
-def get_disk(logger, command, config_data, pci_num):
+def get_disk(logger, command, config_data, pci_num=""):
"""
Get disk info
"""
diff -Naur rpm/tests/disk/disk.py oech/tests/disk/disk.py
--- rpm/tests/disk/disk.py 2022-10-26 19:50:53.857748470 +0800
+++ oech/tests/disk/disk.py 2022-10-26 19:38:37.545748470 +0800
@@ -42,7 +42,7 @@
"""
Start test
"""
- self.disks = get_disk(self.logger, self.command, self.config_data, self.pci_num)
+ self.disks = get_disk(self.logger, self.command, self.config_data)
if len(self.disks) == 0:
self.logger.error("No suite disk found to test.")
return False