Skip to content

Commit 0f68e15

Browse files
authored
Merge pull request #395 from mathoudebine/fix/392-test_librehardwaremonitorpy-does-not-show-detailed-motherboard-info-the-standalone-exe-does-provide-this
2 parents 46c57b8 + 073da57 commit 0f68e15

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

external/LibreHardwareMonitor/test_librehardwaremonitor.py

+8
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@
5252

5353
for sensor in hw.Sensors:
5454
print(" %s | %s | %s" % (sensor.SensorType, sensor.Name, sensor.Value))
55+
56+
for subhw in hw.SubHardware:
57+
print(" %s | %s | %s" % (subhw.HardwareType, subhw.Name, subhw.Identifier))
58+
subhw.Update()
59+
60+
for sensor in subhw.Sensors:
61+
print(" %s | %s | %s" % (sensor.SensorType, sensor.Name, sensor.Value))
62+
5563
print("----------------------------------------------------")
5664

5765
handle.Close()

tools/compare-images.py

+9-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,15 @@
2323

2424
from PIL import Image, ImageChops
2525

26-
im1 = Image.open(sys.argv[1]).convert('RGB')
27-
im2 = Image.open(sys.argv[2]).convert('RGB')
26+
try:
27+
im1 = Image.open(sys.argv[1]).convert('RGB')
28+
except:
29+
sys.exit(0)
30+
31+
try:
32+
im2 = Image.open(sys.argv[2]).convert('RGB')
33+
except:
34+
sys.exit(0)
2835

2936
if list(im1.getdata()) == list(im2.getdata()):
3037
print("The 2 pictures are visually identical")

0 commit comments

Comments
 (0)