avocado-framework-tests / avocado-misc-tests

Community maintained Avocado tests repository
Other
22 stars 123 forks source link

Fixing the issue of getting "Unknown" value with platform.processor #2897

Closed Naresh-ibm closed 3 weeks ago

Naresh-ibm commented 2 months ago

platform.processor is returning the unknown value and hence tests were failing. So changed this checking with other util functions like cpu.get_arch()

Naresh-ibm commented 2 months ago
Before fix
-------------

# avocado run --max-parallel-tasks=1 pci_hotplug.py -m pci_hotplug.py.data/pci_hotplug.yaml 
JOB ID     : 34e727d98d44339e59dcdc2dbc0c229c84e96d1b
JOB LOG    : /root/avocado-fvt-wrapper/results/job-2024-09-19T04.47-34e727d/job.log
 (1/1) pci_hotplug.py:PCIHotPlugTest.test;run-peer_ip-3dcc: STARTED
 (1/1) pci_hotplug.py:PCIHotPlugTest.test;run-peer_ip-3dcc: CANCEL: Processor is not ppc64 (0.01 s)
RESULTS    : PASS 0 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 1
JOB HTML   : /root/avocado-fvt-wrapper/results/job-2024-09-19T04.47-34e727d/results.html
JOB TIME   : 23.01 s

After fix
-------------

]# avocado run --max-parallel-tasks=1 pci_hotplug.py -m pci_hotplug.py.data/pci_hotplug.yaml
JOB ID     : c857674a96c01dc50eb6dffd3037496c1648d361
JOB LOG    : /root/avocado-fvt-wrapper/results/job-2024-09-19T05.47-c857674/job.log
 (1/1) pci_hotplug.py:PCIHotPlugTest.test;run-peer_ip-3dcc: STARTED
 (1/1) pci_hotplug.py:PCIHotPlugTest.test;run-peer_ip-3dcc: PASS (1.28 s)
RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : /root/avocado-fvt-wrapper/results/job-2024-09-19T05.47-c857674/results.html
JOB TIME   : 115.84 s
abdhaleegit commented 4 weeks ago

@Naresh-ibm Please wait for https://github.com/avocado-framework/avocado/pull/5993 when this is merged.. it is dependent