canonical / checkbox

Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
https://checkbox.readthedocs.io
GNU General Public License v3.0
31 stars 47 forks source link

The return value for the subprocess run in reboot_check_test.py is always None #1548

Closed LiaoU3 closed 1 week ago

LiaoU3 commented 1 week ago

Bug Description

Due to the fact that subprocess.run will return None if there is no stdout=subprocess.PIPE, all the subprocess run in this script will cause errors. This bugs currently affect the beta channel (maybe also test in debian) submission: https://certification.canonical.com/hardware/202407-34230/submission/400129/test/69038/result/45039098/

To Reproduce

  1. checkbox.checkbox-cli run com.canonical.certification::init-boot-loop-data

Environment

Relevant log output

00:00.0 Host bridge: Intel Corporation Device 4675
00:02.0 VGA compatible controller: Intel Corporation Device 46d0
00:05.0 Multimedia controller: Intel Corporation Device 462e
00:08.0 System peripheral: Intel Corporation Device 467e
00:0a.0 Signal processing controller: Intel Corporation Platform Monitoring Technology (rev 01)
00:0d.0 USB controller: Intel Corporation Device 464e
00:12.0 Serial controller: Intel Corporation Device 54fc
00:14.0 USB controller: Intel Corporation Device 54ed
00:14.2 RAM memory: Intel Corporation Device 54ef
00:15.0 Serial bus controller: Intel Corporation Device 54e8
00:15.1 Serial bus controller: Intel Corporation Device 54e9
00:16.0 Communication controller: Intel Corporation Device 54e0
00:17.0 SATA controller: Intel Corporation Device 54d3
00:19.0 Serial bus controller: Intel Corporation Device 54c5
00:19.1 Serial bus controller: Intel Corporation Device 54c6
00:1a.0 SD Host controller: Intel Corporation Device 54c4
00:1c.0 PCI bridge: Intel Corporation Device 54bb
00:1d.0 PCI bridge: Intel Corporation Device 54b1
00:1e.0 Communication controller: Intel Corporation Device 54a8
00:1e.3 Serial bus controller: Intel Corporation Device 54ab
00:1e.4 Ethernet controller: Intel Corporation Device 54ac
00:1f.0 ISA bridge: Intel Corporation Device 548a
00:1f.3 Multimedia audio controller: Intel Corporation Device 54c8
00:1f.4 SMBus: Intel Corporation Device 54a3
00:1f.5 Serial bus controller: Intel Corporation Device 54a4
01:00.0 Network controller: Intel Corporation Wi-Fi 6 AX210/AX211/AX411 160MHz (rev 1a)
02:00.0 Ethernet controller: Intel Corporation Ethernet Controller (2) I225-IT (rev 03)
Traceback (most recent call last):
  File "/home/ubuntu/test.py", line 3, in <module>
    print(sp.run(["lspci", "-i", "{}/usr/share/misc/pci.ids".format(SNAP)],check=True,).stdout.decode())
AttributeError: 'NoneType' object has no attribute 'decode'

Additional context

No response

syncronize-issues-to-jira[bot] commented 1 week ago

Thank you for reporting us your feedback!

The internal ticket has been created: https://warthogs.atlassian.net/browse/CHECKBOX-1620.

This message was autogenerated