Merge ~jocave/checkbox-support:fix-lp1850972 into checkbox-support:master

Proposed by Jonathan Cave
Status: Merged
Approved by: Jonathan Cave
Approved revision: c70003975ef17ebaac80e906b9ffb56f3780c77a
Merged at revision: 00510d9e198105828abedff5a36444766277894c
Proposed branch: ~jocave/checkbox-support:fix-lp1850972
Merge into: checkbox-support:master
Diff against target: 1279 lines (+1225/-2)
3 files modified
checkbox_support/parsers/dmidecode.py (+2/-2)
checkbox_support/parsers/tests/dmidecode_data/LENOVO_SYSTEMX.txt (+1192/-0)
checkbox_support/parsers/tests/test_dmidecode.py (+31/-0)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Sheila Miguez (community) Approve
Review via email: mp+375165@code.launchpad.net

Description of the change

Regex modification and tests to check the output against the source of bug 1850972

To post a comment you must log in.
Revision history for this message
Sheila Miguez (codersquid) wrote :

lgtm

review: Approve
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/checkbox_support/parsers/dmidecode.py b/checkbox_support/parsers/dmidecode.py
2index b056683..4581968 100644
3--- a/checkbox_support/parsers/dmidecode.py
4+++ b/checkbox_support/parsers/dmidecode.py
5@@ -36,7 +36,7 @@ HANDLE_RE = re.compile(
6 r"(?P<size>\d+) bytes$"
7 % hexdigits)
8 KEY_VALUE_RE = re.compile(
9- r"^\t(?P<key>[%s].+):( (?P<value>.+))?$"
10+ r"^\t(?P<key>[%s][^:]+):( (?P<value>.+))?$"
11 % ascii_uppercase)
12
13
14@@ -64,7 +64,7 @@ class DmidecodeParser(object):
15 "Type": "type",
16 "Vendor": "vendor",
17 "Version": "version",
18- }
19+ }
20
21 def __init__(self, stream):
22 self.stream = stream
23diff --git a/checkbox_support/parsers/tests/dmidecode_data/LENOVO_SYSTEMX.txt b/checkbox_support/parsers/tests/dmidecode_data/LENOVO_SYSTEMX.txt
24new file mode 100644
25index 0000000..7f07c88
26--- /dev/null
27+++ b/checkbox_support/parsers/tests/dmidecode_data/LENOVO_SYSTEMX.txt
28@@ -0,0 +1,1192 @@
29+# dmidecode 3.2
30+Getting SMBIOS data from sysfs.
31+SMBIOS 3.0 present.
32+83 structures occupying 4246 bytes.
33+Table at 0x78A02000.
34+
35+Handle 0x0000, DMI type 7, 19 bytes
36+Cache Information
37+ Socket Designation: L1-Cache
38+ Configuration: Enabled, Not Socketed, Level 1
39+ Operational Mode: Write Back
40+ Location: Internal
41+ Installed Size: 64 kB
42+ Maximum Size: 64 kB
43+ Supported SRAM Types:
44+ Synchronous
45+ Installed SRAM Type: Synchronous
46+ Speed: Unknown
47+ Error Correction Type: Single-bit ECC
48+ System Type: Instruction
49+ Associativity: 8-way Set-associative
50+
51+Handle 0x0001, DMI type 7, 19 bytes
52+Cache Information
53+ Socket Designation: L2-Cache
54+ Configuration: Enabled, Not Socketed, Level 2
55+ Operational Mode: Varies With Memory Address
56+ Location: Internal
57+ Installed Size: 256 kB
58+ Maximum Size: 256 kB
59+ Supported SRAM Types:
60+ Synchronous
61+ Installed SRAM Type: Synchronous
62+ Speed: Unknown
63+ Error Correction Type: Single-bit ECC
64+ System Type: Unified
65+ Associativity: 8-way Set-associative
66+
67+Handle 0x0002, DMI type 7, 19 bytes
68+Cache Information
69+ Socket Designation: L3-Cache
70+ Configuration: Enabled, Not Socketed, Level 3
71+ Operational Mode: Varies With Memory Address
72+ Location: Internal
73+ Installed Size: 25600 kB
74+ Maximum Size: 25600 kB
75+ Supported SRAM Types:
76+ Synchronous
77+ Installed SRAM Type: Synchronous
78+ Speed: Unknown
79+ Error Correction Type: Single-bit ECC
80+ System Type: Unified
81+ Associativity: Fully Associative
82+
83+Handle 0x0003, DMI type 4, 48 bytes
84+Processor Information
85+ Socket Designation: Socket 1
86+ Type: Central Processor
87+ Family: Xeon
88+ Manufacturer: Intel(R) Corporation
89+ ID: F1 06 04 00 FF FB EB BF
90+ Signature: Type 0, Family 6, Model 79, Stepping 1
91+ Flags:
92+ FPU (Floating-point unit on-chip)
93+ VME (Virtual mode extension)
94+ DE (Debugging extension)
95+ PSE (Page size extension)
96+ TSC (Time stamp counter)
97+ MSR (Model specific registers)
98+ PAE (Physical address extension)
99+ MCE (Machine check exception)
100+ CX8 (CMPXCHG8 instruction supported)
101+ APIC (On-chip APIC hardware supported)
102+ SEP (Fast system call)
103+ MTRR (Memory type range registers)
104+ PGE (Page global enable)
105+ MCA (Machine check architecture)
106+ CMOV (Conditional move instruction supported)
107+ PAT (Page attribute table)
108+ PSE-36 (36-bit page size extension)
109+ CLFSH (CLFLUSH instruction supported)
110+ DS (Debug store)
111+ ACPI (ACPI supported)
112+ MMX (MMX technology supported)
113+ FXSR (FXSAVE and FXSTOR instructions supported)
114+ SSE (Streaming SIMD extensions)
115+ SSE2 (Streaming SIMD extensions 2)
116+ SS (Self-snoop)
117+ HTT (Multi-threading)
118+ TM (Thermal monitor supported)
119+ PBE (Pending break enabled)
120+ Version: Intel(R) Xeon(R) CPU E5-2689 v4 @ 3.10GHz
121+ Voltage: 1.8 V
122+ External Clock: 100 MHz
123+ Max Speed: 4000 MHz
124+ Current Speed: 3100 MHz
125+ Status: Populated, Enabled
126+ Upgrade: Socket LGA2011-3
127+ L1 Cache Handle: 0x0000
128+ L2 Cache Handle: 0x0001
129+ L3 Cache Handle: 0x0002
130+ Serial Number: Not Specified
131+ Asset Tag: Unknown
132+ Part Number: Not Specified
133+ Core Count: 10
134+ Core Enabled: 10
135+ Thread Count: 20
136+ Characteristics:
137+ 64-bit capable
138+ Multi-Core
139+ Hardware Thread
140+ Execute Protection
141+ Enhanced Virtualization
142+ Power/Performance Control
143+
144+Handle 0x0004, DMI type 7, 19 bytes
145+Cache Information
146+ Socket Designation: L1-Cache
147+ Configuration: Enabled, Not Socketed, Level 1
148+ Operational Mode: Write Back
149+ Location: Internal
150+ Installed Size: 64 kB
151+ Maximum Size: 64 kB
152+ Supported SRAM Types:
153+ Synchronous
154+ Installed SRAM Type: Synchronous
155+ Speed: Unknown
156+ Error Correction Type: Single-bit ECC
157+ System Type: Instruction
158+ Associativity: 8-way Set-associative
159+
160+Handle 0x0005, DMI type 7, 19 bytes
161+Cache Information
162+ Socket Designation: L2-Cache
163+ Configuration: Enabled, Not Socketed, Level 2
164+ Operational Mode: Varies With Memory Address
165+ Location: Internal
166+ Installed Size: 256 kB
167+ Maximum Size: 256 kB
168+ Supported SRAM Types:
169+ Synchronous
170+ Installed SRAM Type: Synchronous
171+ Speed: Unknown
172+ Error Correction Type: Single-bit ECC
173+ System Type: Unified
174+ Associativity: 8-way Set-associative
175+
176+Handle 0x0006, DMI type 7, 19 bytes
177+Cache Information
178+ Socket Designation: L3-Cache
179+ Configuration: Enabled, Not Socketed, Level 3
180+ Operational Mode: Varies With Memory Address
181+ Location: Internal
182+ Installed Size: 25600 kB
183+ Maximum Size: 25600 kB
184+ Supported SRAM Types:
185+ Synchronous
186+ Installed SRAM Type: Synchronous
187+ Speed: Unknown
188+ Error Correction Type: Single-bit ECC
189+ System Type: Unified
190+ Associativity: Fully Associative
191+
192+Handle 0x0007, DMI type 4, 48 bytes
193+Processor Information
194+ Socket Designation: Socket 2
195+ Type: Central Processor
196+ Family: Xeon
197+ Manufacturer: Intel(R) Corporation
198+ ID: F1 06 04 00 FF FB EB BF
199+ Signature: Type 0, Family 6, Model 79, Stepping 1
200+ Flags:
201+ FPU (Floating-point unit on-chip)
202+ VME (Virtual mode extension)
203+ DE (Debugging extension)
204+ PSE (Page size extension)
205+ TSC (Time stamp counter)
206+ MSR (Model specific registers)
207+ PAE (Physical address extension)
208+ MCE (Machine check exception)
209+ CX8 (CMPXCHG8 instruction supported)
210+ APIC (On-chip APIC hardware supported)
211+ SEP (Fast system call)
212+ MTRR (Memory type range registers)
213+ PGE (Page global enable)
214+ MCA (Machine check architecture)
215+ CMOV (Conditional move instruction supported)
216+ PAT (Page attribute table)
217+ PSE-36 (36-bit page size extension)
218+ CLFSH (CLFLUSH instruction supported)
219+ DS (Debug store)
220+ ACPI (ACPI supported)
221+ MMX (MMX technology supported)
222+ FXSR (FXSAVE and FXSTOR instructions supported)
223+ SSE (Streaming SIMD extensions)
224+ SSE2 (Streaming SIMD extensions 2)
225+ SS (Self-snoop)
226+ HTT (Multi-threading)
227+ TM (Thermal monitor supported)
228+ PBE (Pending break enabled)
229+ Version: Intel(R) Xeon(R) CPU E5-2689 v4 @ 3.10GHz
230+ Voltage: 1.8 V
231+ External Clock: 100 MHz
232+ Max Speed: 4000 MHz
233+ Current Speed: 3100 MHz
234+ Status: Populated, Enabled
235+ Upgrade: Socket LGA2011-3
236+ L1 Cache Handle: 0x0004
237+ L2 Cache Handle: 0x0005
238+ L3 Cache Handle: 0x0006
239+ Serial Number: Not Specified
240+ Asset Tag: Unknown
241+ Part Number: Not Specified
242+ Core Count: 10
243+ Core Enabled: 10
244+ Thread Count: 20
245+ Characteristics:
246+ 64-bit capable
247+ Multi-Core
248+ Hardware Thread
249+ Execute Protection
250+ Enhanced Virtualization
251+ Power/Performance Control
252+
253+Handle 0x0008, DMI type 16, 23 bytes
254+Physical Memory Array
255+ Location: System Board Or Motherboard
256+ Use: System Memory
257+ Error Correction Type: Multi-bit ECC
258+ Maximum Capacity: 1536 GB
259+ Error Information Handle: Not Provided
260+ Number Of Devices: 24
261+
262+Handle 0x0009, DMI type 19, 31 bytes
263+Memory Array Mapped Address
264+ Starting Address: 0x00000000000
265+ Ending Address: 0x00FFFFFFFFF
266+ Range Size: 64 GB
267+ Physical Array Handle: 0x0008
268+ Partition Width: 24
269+
270+Handle 0x000A, DMI type 17, 40 bytes
271+Memory Device
272+ Array Handle: 0x0008
273+ Error Information Handle: Not Provided
274+ Total Width: 72 bits
275+ Data Width: 64 bits
276+ Size: 16384 MB
277+ Form Factor: DIMM
278+ Set: None
279+ Locator: Dimm 1
280+ Bank Locator: CPU 1
281+ Type: DDR4
282+ Type Detail: Synchronous
283+ Speed: 2133 MT/s
284+ Manufacturer: Hynix
285+ Serial Number: 108DEFAD
286+ Asset Tag: Unknown
287+ Part Number: HMA42GR7MFR4N-TF
288+ Rank: 2
289+ Configured Memory Speed: 2133 MT/s
290+ Minimum Voltage: 1.2 V
291+ Maximum Voltage: 1.2 V
292+ Configured Voltage: 1.2 V
293+
294+Handle 0x000B, DMI type 17, 40 bytes
295+Memory Device
296+ Array Handle: 0x0008
297+ Error Information Handle: Not Provided
298+ Total Width: Unknown
299+ Data Width: Unknown
300+ Size: No Module Installed
301+ Form Factor: DIMM
302+ Set: None
303+ Locator: Dimm 2
304+ Bank Locator: CPU 1
305+ Type: DDR4
306+ Type Detail: Synchronous
307+ Speed: Unknown
308+ Manufacturer: NO DIMM
309+ Serial Number: Unknown
310+ Asset Tag: Unknown
311+ Part Number: Unknown
312+ Rank: Unknown
313+ Configured Memory Speed: Unknown
314+ Minimum Voltage: Unknown
315+ Maximum Voltage: Unknown
316+ Configured Voltage: Unknown
317+
318+Handle 0x000C, DMI type 17, 40 bytes
319+Memory Device
320+ Array Handle: 0x0008
321+ Error Information Handle: Not Provided
322+ Total Width: Unknown
323+ Data Width: Unknown
324+ Size: No Module Installed
325+ Form Factor: DIMM
326+ Set: None
327+ Locator: Dimm 3
328+ Bank Locator: CPU 1
329+ Type: DDR4
330+ Type Detail: Synchronous
331+ Speed: Unknown
332+ Manufacturer: NO DIMM
333+ Serial Number: Unknown
334+ Asset Tag: Unknown
335+ Part Number: Unknown
336+ Rank: Unknown
337+ Configured Memory Speed: Unknown
338+ Minimum Voltage: Unknown
339+ Maximum Voltage: Unknown
340+ Configured Voltage: Unknown
341+
342+Handle 0x000D, DMI type 17, 40 bytes
343+Memory Device
344+ Array Handle: 0x0008
345+ Error Information Handle: Not Provided
346+ Total Width: 72 bits
347+ Data Width: 64 bits
348+ Size: 16384 MB
349+ Form Factor: DIMM
350+ Set: None
351+ Locator: Dimm 4
352+ Bank Locator: CPU 1
353+ Type: DDR4
354+ Type Detail: Synchronous
355+ Speed: 2133 MT/s
356+ Manufacturer: Hynix
357+ Serial Number: 108DEFB5
358+ Asset Tag: Unknown
359+ Part Number: HMA42GR7MFR4N-TF
360+ Rank: 2
361+ Configured Memory Speed: 2133 MT/s
362+ Minimum Voltage: 1.2 V
363+ Maximum Voltage: 1.2 V
364+ Configured Voltage: 1.2 V
365+
366+Handle 0x000E, DMI type 17, 40 bytes
367+Memory Device
368+ Array Handle: 0x0008
369+ Error Information Handle: Not Provided
370+ Total Width: Unknown
371+ Data Width: Unknown
372+ Size: No Module Installed
373+ Form Factor: DIMM
374+ Set: None
375+ Locator: Dimm 5
376+ Bank Locator: CPU 1
377+ Type: DDR4
378+ Type Detail: Synchronous
379+ Speed: Unknown
380+ Manufacturer: NO DIMM
381+ Serial Number: Unknown
382+ Asset Tag: Unknown
383+ Part Number: Unknown
384+ Rank: Unknown
385+ Configured Memory Speed: Unknown
386+ Minimum Voltage: Unknown
387+ Maximum Voltage: Unknown
388+ Configured Voltage: Unknown
389+
390+Handle 0x000F, DMI type 17, 40 bytes
391+Memory Device
392+ Array Handle: 0x0008
393+ Error Information Handle: Not Provided
394+ Total Width: Unknown
395+ Data Width: Unknown
396+ Size: No Module Installed
397+ Form Factor: DIMM
398+ Set: None
399+ Locator: Dimm 6
400+ Bank Locator: CPU 1
401+ Type: DDR4
402+ Type Detail: Synchronous
403+ Speed: Unknown
404+ Manufacturer: NO DIMM
405+ Serial Number: Unknown
406+ Asset Tag: Unknown
407+ Part Number: Unknown
408+ Rank: Unknown
409+ Configured Memory Speed: Unknown
410+ Minimum Voltage: Unknown
411+ Maximum Voltage: Unknown
412+ Configured Voltage: Unknown
413+
414+Handle 0x0010, DMI type 17, 40 bytes
415+Memory Device
416+ Array Handle: 0x0008
417+ Error Information Handle: Not Provided
418+ Total Width: Unknown
419+ Data Width: Unknown
420+ Size: No Module Installed
421+ Form Factor: DIMM
422+ Set: None
423+ Locator: Dimm 7
424+ Bank Locator: CPU 1
425+ Type: DDR4
426+ Type Detail: Synchronous
427+ Speed: Unknown
428+ Manufacturer: NO DIMM
429+ Serial Number: Unknown
430+ Asset Tag: Unknown
431+ Part Number: Unknown
432+ Rank: Unknown
433+ Configured Memory Speed: Unknown
434+ Minimum Voltage: Unknown
435+ Maximum Voltage: Unknown
436+ Configured Voltage: Unknown
437+
438+Handle 0x0011, DMI type 17, 40 bytes
439+Memory Device
440+ Array Handle: 0x0008
441+ Error Information Handle: Not Provided
442+ Total Width: Unknown
443+ Data Width: Unknown
444+ Size: No Module Installed
445+ Form Factor: DIMM
446+ Set: None
447+ Locator: Dimm 8
448+ Bank Locator: CPU 1
449+ Type: DDR4
450+ Type Detail: Synchronous
451+ Speed: Unknown
452+ Manufacturer: NO DIMM
453+ Serial Number: Unknown
454+ Asset Tag: Unknown
455+ Part Number: Unknown
456+ Rank: Unknown
457+ Configured Memory Speed: Unknown
458+ Minimum Voltage: Unknown
459+ Maximum Voltage: Unknown
460+ Configured Voltage: Unknown
461+
462+Handle 0x0012, DMI type 17, 40 bytes
463+Memory Device
464+ Array Handle: 0x0008
465+ Error Information Handle: Not Provided
466+ Total Width: Unknown
467+ Data Width: Unknown
468+ Size: No Module Installed
469+ Form Factor: DIMM
470+ Set: None
471+ Locator: Dimm 9
472+ Bank Locator: CPU 1
473+ Type: DDR4
474+ Type Detail: Synchronous
475+ Speed: Unknown
476+ Manufacturer: NO DIMM
477+ Serial Number: Unknown
478+ Asset Tag: Unknown
479+ Part Number: Unknown
480+ Rank: Unknown
481+ Configured Memory Speed: Unknown
482+ Minimum Voltage: Unknown
483+ Maximum Voltage: Unknown
484+ Configured Voltage: Unknown
485+
486+Handle 0x0013, DMI type 17, 40 bytes
487+Memory Device
488+ Array Handle: 0x0008
489+ Error Information Handle: Not Provided
490+ Total Width: Unknown
491+ Data Width: Unknown
492+ Size: No Module Installed
493+ Form Factor: DIMM
494+ Set: None
495+ Locator: Dimm 10
496+ Bank Locator: CPU 1
497+ Type: DDR4
498+ Type Detail: Synchronous
499+ Speed: Unknown
500+ Manufacturer: NO DIMM
501+ Serial Number: Unknown
502+ Asset Tag: Unknown
503+ Part Number: Unknown
504+ Rank: Unknown
505+ Configured Memory Speed: Unknown
506+ Minimum Voltage: Unknown
507+ Maximum Voltage: Unknown
508+ Configured Voltage: Unknown
509+
510+Handle 0x0014, DMI type 17, 40 bytes
511+Memory Device
512+ Array Handle: 0x0008
513+ Error Information Handle: Not Provided
514+ Total Width: Unknown
515+ Data Width: Unknown
516+ Size: No Module Installed
517+ Form Factor: DIMM
518+ Set: None
519+ Locator: Dimm 11
520+ Bank Locator: CPU 1
521+ Type: DDR4
522+ Type Detail: Synchronous
523+ Speed: Unknown
524+ Manufacturer: NO DIMM
525+ Serial Number: Unknown
526+ Asset Tag: Unknown
527+ Part Number: Unknown
528+ Rank: Unknown
529+ Configured Memory Speed: Unknown
530+ Minimum Voltage: Unknown
531+ Maximum Voltage: Unknown
532+ Configured Voltage: Unknown
533+
534+Handle 0x0015, DMI type 17, 40 bytes
535+Memory Device
536+ Array Handle: 0x0008
537+ Error Information Handle: Not Provided
538+ Total Width: Unknown
539+ Data Width: Unknown
540+ Size: No Module Installed
541+ Form Factor: DIMM
542+ Set: None
543+ Locator: Dimm 12
544+ Bank Locator: CPU 1
545+ Type: DDR4
546+ Type Detail: Synchronous
547+ Speed: Unknown
548+ Manufacturer: NO DIMM
549+ Serial Number: Unknown
550+ Asset Tag: Unknown
551+ Part Number: Unknown
552+ Rank: Unknown
553+ Configured Memory Speed: Unknown
554+ Minimum Voltage: Unknown
555+ Maximum Voltage: Unknown
556+ Configured Voltage: Unknown
557+
558+Handle 0x0016, DMI type 17, 40 bytes
559+Memory Device
560+ Array Handle: 0x0008
561+ Error Information Handle: Not Provided
562+ Total Width: 72 bits
563+ Data Width: 64 bits
564+ Size: 16384 MB
565+ Form Factor: DIMM
566+ Set: None
567+ Locator: Dimm 13
568+ Bank Locator: CPU 2
569+ Type: DDR4
570+ Type Detail: Synchronous
571+ Speed: 2133 MT/s
572+ Manufacturer: Hynix
573+ Serial Number: 108DF039
574+ Asset Tag: Unknown
575+ Part Number: HMA42GR7MFR4N-TF
576+ Rank: 2
577+ Configured Memory Speed: 2133 MT/s
578+ Minimum Voltage: 1.2 V
579+ Maximum Voltage: 1.2 V
580+ Configured Voltage: 1.2 V
581+
582+Handle 0x0017, DMI type 17, 40 bytes
583+Memory Device
584+ Array Handle: 0x0008
585+ Error Information Handle: Not Provided
586+ Total Width: Unknown
587+ Data Width: Unknown
588+ Size: No Module Installed
589+ Form Factor: DIMM
590+ Set: None
591+ Locator: Dimm 14
592+ Bank Locator: CPU 2
593+ Type: DDR4
594+ Type Detail: Synchronous
595+ Speed: Unknown
596+ Manufacturer: NO DIMM
597+ Serial Number: Unknown
598+ Asset Tag: Unknown
599+ Part Number: Unknown
600+ Rank: Unknown
601+ Configured Memory Speed: Unknown
602+ Minimum Voltage: Unknown
603+ Maximum Voltage: Unknown
604+ Configured Voltage: Unknown
605+
606+Handle 0x0018, DMI type 17, 40 bytes
607+Memory Device
608+ Array Handle: 0x0008
609+ Error Information Handle: Not Provided
610+ Total Width: Unknown
611+ Data Width: Unknown
612+ Size: No Module Installed
613+ Form Factor: DIMM
614+ Set: None
615+ Locator: Dimm 15
616+ Bank Locator: CPU 2
617+ Type: DDR4
618+ Type Detail: Synchronous
619+ Speed: Unknown
620+ Manufacturer: NO DIMM
621+ Serial Number: Unknown
622+ Asset Tag: Unknown
623+ Part Number: Unknown
624+ Rank: Unknown
625+ Configured Memory Speed: Unknown
626+ Minimum Voltage: Unknown
627+ Maximum Voltage: Unknown
628+ Configured Voltage: Unknown
629+
630+Handle 0x0019, DMI type 17, 40 bytes
631+Memory Device
632+ Array Handle: 0x0008
633+ Error Information Handle: Not Provided
634+ Total Width: 72 bits
635+ Data Width: 64 bits
636+ Size: 16384 MB
637+ Form Factor: DIMM
638+ Set: None
639+ Locator: Dimm 16
640+ Bank Locator: CPU 2
641+ Type: DDR4
642+ Type Detail: Synchronous
643+ Speed: 2133 MT/s
644+ Manufacturer: Hynix
645+ Serial Number: 108DEFB8
646+ Asset Tag: Unknown
647+ Part Number: HMA42GR7MFR4N-TF
648+ Rank: 2
649+ Configured Memory Speed: 2133 MT/s
650+ Minimum Voltage: 1.2 V
651+ Maximum Voltage: 1.2 V
652+ Configured Voltage: 1.2 V
653+
654+Handle 0x001A, DMI type 17, 40 bytes
655+Memory Device
656+ Array Handle: 0x0008
657+ Error Information Handle: Not Provided
658+ Total Width: Unknown
659+ Data Width: Unknown
660+ Size: No Module Installed
661+ Form Factor: DIMM
662+ Set: None
663+ Locator: Dimm 17
664+ Bank Locator: CPU 2
665+ Type: DDR4
666+ Type Detail: Synchronous
667+ Speed: Unknown
668+ Manufacturer: NO DIMM
669+ Serial Number: Unknown
670+ Asset Tag: Unknown
671+ Part Number: Unknown
672+ Rank: Unknown
673+ Configured Memory Speed: Unknown
674+ Minimum Voltage: Unknown
675+ Maximum Voltage: Unknown
676+ Configured Voltage: Unknown
677+
678+Handle 0x001B, DMI type 17, 40 bytes
679+Memory Device
680+ Array Handle: 0x0008
681+ Error Information Handle: Not Provided
682+ Total Width: Unknown
683+ Data Width: Unknown
684+ Size: No Module Installed
685+ Form Factor: DIMM
686+ Set: None
687+ Locator: Dimm 18
688+ Bank Locator: CPU 2
689+ Type: DDR4
690+ Type Detail: Synchronous
691+ Speed: Unknown
692+ Manufacturer: NO DIMM
693+ Serial Number: Unknown
694+ Asset Tag: Unknown
695+ Part Number: Unknown
696+ Rank: Unknown
697+ Configured Memory Speed: Unknown
698+ Minimum Voltage: Unknown
699+ Maximum Voltage: Unknown
700+ Configured Voltage: Unknown
701+
702+Handle 0x001C, DMI type 17, 40 bytes
703+Memory Device
704+ Array Handle: 0x0008
705+ Error Information Handle: Not Provided
706+ Total Width: Unknown
707+ Data Width: Unknown
708+ Size: No Module Installed
709+ Form Factor: DIMM
710+ Set: None
711+ Locator: Dimm 19
712+ Bank Locator: CPU 2
713+ Type: DDR4
714+ Type Detail: Synchronous
715+ Speed: Unknown
716+ Manufacturer: NO DIMM
717+ Serial Number: Unknown
718+ Asset Tag: Unknown
719+ Part Number: Unknown
720+ Rank: Unknown
721+ Configured Memory Speed: Unknown
722+ Minimum Voltage: Unknown
723+ Maximum Voltage: Unknown
724+ Configured Voltage: Unknown
725+
726+Handle 0x001D, DMI type 17, 40 bytes
727+Memory Device
728+ Array Handle: 0x0008
729+ Error Information Handle: Not Provided
730+ Total Width: Unknown
731+ Data Width: Unknown
732+ Size: No Module Installed
733+ Form Factor: DIMM
734+ Set: None
735+ Locator: Dimm 20
736+ Bank Locator: CPU 2
737+ Type: DDR4
738+ Type Detail: Synchronous
739+ Speed: Unknown
740+ Manufacturer: NO DIMM
741+ Serial Number: Unknown
742+ Asset Tag: Unknown
743+ Part Number: Unknown
744+ Rank: Unknown
745+ Configured Memory Speed: Unknown
746+ Minimum Voltage: Unknown
747+ Maximum Voltage: Unknown
748+ Configured Voltage: Unknown
749+
750+Handle 0x001E, DMI type 17, 40 bytes
751+Memory Device
752+ Array Handle: 0x0008
753+ Error Information Handle: Not Provided
754+ Total Width: Unknown
755+ Data Width: Unknown
756+ Size: No Module Installed
757+ Form Factor: DIMM
758+ Set: None
759+ Locator: Dimm 21
760+ Bank Locator: CPU 2
761+ Type: DDR4
762+ Type Detail: Synchronous
763+ Speed: Unknown
764+ Manufacturer: NO DIMM
765+ Serial Number: Unknown
766+ Asset Tag: Unknown
767+ Part Number: Unknown
768+ Rank: Unknown
769+ Configured Memory Speed: Unknown
770+ Minimum Voltage: Unknown
771+ Maximum Voltage: Unknown
772+ Configured Voltage: Unknown
773+
774+Handle 0x001F, DMI type 17, 40 bytes
775+Memory Device
776+ Array Handle: 0x0008
777+ Error Information Handle: Not Provided
778+ Total Width: Unknown
779+ Data Width: Unknown
780+ Size: No Module Installed
781+ Form Factor: DIMM
782+ Set: None
783+ Locator: Dimm 22
784+ Bank Locator: CPU 2
785+ Type: DDR4
786+ Type Detail: Synchronous
787+ Speed: Unknown
788+ Manufacturer: NO DIMM
789+ Serial Number: Unknown
790+ Asset Tag: Unknown
791+ Part Number: Unknown
792+ Rank: Unknown
793+ Configured Memory Speed: Unknown
794+ Minimum Voltage: Unknown
795+ Maximum Voltage: Unknown
796+ Configured Voltage: Unknown
797+
798+Handle 0x0020, DMI type 17, 40 bytes
799+Memory Device
800+ Array Handle: 0x0008
801+ Error Information Handle: Not Provided
802+ Total Width: Unknown
803+ Data Width: Unknown
804+ Size: No Module Installed
805+ Form Factor: DIMM
806+ Set: None
807+ Locator: Dimm 23
808+ Bank Locator: CPU 2
809+ Type: DDR4
810+ Type Detail: Synchronous
811+ Speed: Unknown
812+ Manufacturer: NO DIMM
813+ Serial Number: Unknown
814+ Asset Tag: Unknown
815+ Part Number: Unknown
816+ Rank: Unknown
817+ Configured Memory Speed: Unknown
818+ Minimum Voltage: Unknown
819+ Maximum Voltage: Unknown
820+ Configured Voltage: Unknown
821+
822+Handle 0x0021, DMI type 17, 40 bytes
823+Memory Device
824+ Array Handle: 0x0008
825+ Error Information Handle: Not Provided
826+ Total Width: Unknown
827+ Data Width: Unknown
828+ Size: No Module Installed
829+ Form Factor: DIMM
830+ Set: None
831+ Locator: Dimm 24
832+ Bank Locator: CPU 2
833+ Type: DDR4
834+ Type Detail: Synchronous
835+ Speed: Unknown
836+ Manufacturer: NO DIMM
837+ Serial Number: Unknown
838+ Asset Tag: Unknown
839+ Part Number: Unknown
840+ Rank: Unknown
841+ Configured Memory Speed: Unknown
842+ Minimum Voltage: Unknown
843+ Maximum Voltage: Unknown
844+ Configured Voltage: Unknown
845+
846+Handle 0x0022, DMI type 0, 24 bytes
847+BIOS Information
848+ Vendor: LENOVO
849+ Version: -[TBE132I-2.50]-
850+ Release Date: 10/11/2017
851+ Address: 0xF0000
852+ Runtime Size: 64 kB
853+ ROM Size: 16 MB
854+ Characteristics:
855+ PCI is supported
856+ PNP is supported
857+ BIOS is upgradeable
858+ BIOS shadowing is allowed
859+ Boot from CD is supported
860+ Selectable boot is supported
861+ EDD is supported
862+ 5.25"/1.2 MB floppy services are supported (int 13h)
863+ 3.5"/720 kB floppy services are supported (int 13h)
864+ 3.5"/2.88 MB floppy services are supported (int 13h)
865+ Print screen service is supported (int 5h)
866+ 8042 keyboard services are supported (int 9h)
867+ Serial services are supported (int 14h)
868+ Printer services are supported (int 17h)
869+ CGA/mono video services are supported (int 10h)
870+ ACPI is supported
871+ USB legacy is supported
872+ LS-120 boot is supported
873+ ATAPI Zip drive boot is supported
874+ Function key-initiated network boot is supported
875+ Targeted content distribution is supported
876+ UEFI is supported
877+ BIOS Revision: 2.50
878+ Firmware Revision: 2.50
879+
880+Handle 0x0023, DMI type 1, 27 bytes
881+System Information
882+ Manufacturer: LENOVO
883+ Product Name: System x3550 M5: -[5463AC1]-
884+ Version: 07
885+ Serial Number: 06EEEAR
886+ UUID: 7b75005c-d029-11e4-9aa6-40f2e9b938a0
887+ Wake-up Type: Power Switch
888+ SKU Number: (none)
889+ Family: System X
890+
891+Handle 0x0024, DMI type 2, 17 bytes
892+Base Board Information
893+ Manufacturer: LENOVO
894+ Product Name: 00MU647
895+ Version: SVT
896+ Serial Number: 51W03H
897+ Asset Tag: (none)
898+ Features:
899+ Board is a hosting board
900+ Board is replaceable
901+ Location In Chassis: Rack Mount
902+ Chassis Handle: 0x0000
903+ Type: Motherboard
904+ Contained Object Handles: 0
905+
906+Handle 0x0025, DMI type 3, 24 bytes
907+Chassis Information
908+ Manufacturer: LENOVO
909+ Type: Rack Mount Chassis
910+ Lock: Not Present
911+ Version: none
912+ Serial Number: none
913+ Asset Tag: none
914+ Boot-up State: Unknown
915+ Power Supply State: Safe
916+ Thermal State: Unknown
917+ Security Status: Unknown
918+ OEM Information: 0x00000000
919+ Height: 1 U
920+ Number Of Power Cords: 2
921+ Contained Elements: 0
922+ SKU Number: Not Specified
923+
924+Handle 0x0026, DMI type 8, 9 bytes
925+Port Connector Information
926+ Internal Reference Designator: SATA Port 0
927+ Internal Connector Type: SAS/SATA Plug Receptacle
928+ External Reference Designator: None
929+ External Connector Type: None
930+ Port Type: SATA
931+
932+Handle 0x0027, DMI type 8, 9 bytes
933+Port Connector Information
934+ Internal Reference Designator: SATA Port 1
935+ Internal Connector Type: SAS/SATA Plug Receptacle
936+ External Reference Designator: None
937+ External Connector Type: None
938+ Port Type: SATA
939+
940+Handle 0x0028, DMI type 8, 9 bytes
941+Port Connector Information
942+ Internal Reference Designator: SATA ODD
943+ Internal Connector Type: SAS/SATA Plug Receptacle
944+ External Reference Designator: None
945+ External Connector Type: None
946+ Port Type: SATA
947+
948+Handle 0x0029, DMI type 8, 9 bytes
949+Port Connector Information
950+ Internal Reference Designator: None
951+ Internal Connector Type: None
952+ External Reference Designator: Video 1
953+ External Connector Type: DB-15 female
954+ Port Type: Video Port
955+
956+Handle 0x002A, DMI type 8, 9 bytes
957+Port Connector Information
958+ Internal Reference Designator: Video 2
959+ Internal Connector Type: DB-15 female
960+ External Reference Designator: None
961+ External Connector Type: None
962+ Port Type: Video Port
963+
964+Handle 0x002B, DMI type 8, 9 bytes
965+Port Connector Information
966+ Internal Reference Designator: COM
967+ Internal Connector Type: Other
968+ External Reference Designator: None
969+ External Connector Type: None
970+ Port Type: Serial Port 16550A Compatible
971+
972+Handle 0x002C, DMI type 8, 9 bytes
973+Port Connector Information
974+ Internal Reference Designator: USB Port Front
975+ Internal Connector Type: Access Bus (USB)
976+ External Reference Designator: None
977+ External Connector Type: None
978+ Port Type: USB
979+
980+Handle 0x002D, DMI type 8, 9 bytes
981+Port Connector Information
982+ Internal Reference Designator: USB Port Front
983+ Internal Connector Type: Access Bus (USB)
984+ External Reference Designator: None
985+ External Connector Type: None
986+ Port Type: USB
987+
988+Handle 0x002E, DMI type 8, 9 bytes
989+Port Connector Information
990+ Internal Reference Designator: USB Port Front
991+ Internal Connector Type: Access Bus (USB)
992+ External Reference Designator: None
993+ External Connector Type: None
994+ Port Type: USB
995+
996+Handle 0x002F, DMI type 8, 9 bytes
997+Port Connector Information
998+ Internal Reference Designator: USB Port Clippy
999+ Internal Connector Type: Access Bus (USB)
1000+ External Reference Designator: None
1001+ External Connector Type: None
1002+ Port Type: USB
1003+
1004+Handle 0x0030, DMI type 8, 9 bytes
1005+Port Connector Information
1006+ Internal Reference Designator: USB Port Hypervisor
1007+ Internal Connector Type: Access Bus (USB)
1008+ External Reference Designator: None
1009+ External Connector Type: None
1010+ Port Type: USB
1011+
1012+Handle 0x0031, DMI type 8, 9 bytes
1013+Port Connector Information
1014+ Internal Reference Designator: None
1015+ Internal Connector Type: None
1016+ External Reference Designator: USB Port 1 Rear
1017+ External Connector Type: Access Bus (USB)
1018+ Port Type: USB
1019+
1020+Handle 0x0032, DMI type 8, 9 bytes
1021+Port Connector Information
1022+ Internal Reference Designator: None
1023+ Internal Connector Type: None
1024+ External Reference Designator: USB Port 2 Rear
1025+ External Connector Type: Access Bus (USB)
1026+ Port Type: USB
1027+
1028+Handle 0x0033, DMI type 8, 9 bytes
1029+Port Connector Information
1030+ Internal Reference Designator: None
1031+ Internal Connector Type: None
1032+ External Reference Designator: USB Port 3 Rear
1033+ External Connector Type: Access Bus (USB)
1034+ Port Type: USB
1035+
1036+Handle 0x0034, DMI type 8, 9 bytes
1037+Port Connector Information
1038+ Internal Reference Designator: None
1039+ Internal Connector Type: None
1040+ External Reference Designator: Ethernet 1
1041+ External Connector Type: RJ-45
1042+ Port Type: Network Port
1043+
1044+Handle 0x0035, DMI type 8, 9 bytes
1045+Port Connector Information
1046+ Internal Reference Designator: None
1047+ Internal Connector Type: None
1048+ External Reference Designator: Ethernet 2
1049+ External Connector Type: RJ-45
1050+ Port Type: Network Port
1051+
1052+Handle 0x0036, DMI type 8, 9 bytes
1053+Port Connector Information
1054+ Internal Reference Designator: None
1055+ Internal Connector Type: None
1056+ External Reference Designator: Ethernet 3
1057+ External Connector Type: RJ-45
1058+ Port Type: Network Port
1059+
1060+Handle 0x0037, DMI type 8, 9 bytes
1061+Port Connector Information
1062+ Internal Reference Designator: None
1063+ Internal Connector Type: None
1064+ External Reference Designator: Ethernet 4
1065+ External Connector Type: RJ-45
1066+ Port Type: Network Port
1067+
1068+Handle 0x0038, DMI type 8, 9 bytes
1069+Port Connector Information
1070+ Internal Reference Designator: None
1071+ Internal Connector Type: None
1072+ External Reference Designator: Dedicated
1073+ External Connector Type: RJ-45
1074+ Port Type: Network Port
1075+
1076+Handle 0x0039, DMI type 9, 17 bytes
1077+System Slot Information
1078+ Designation: Slot 1
1079+ Type: x16 PCI Express 3 x16
1080+ Current Usage: In Use
1081+ Length: <OUT OF SPEC>
1082+ ID: 1
1083+ Characteristics:
1084+ 3.3 V is provided
1085+ Bus Address: 0000:06:00.0
1086+
1087+Handle 0x003A, DMI type 9, 17 bytes
1088+System Slot Information
1089+ Designation: Slot 4
1090+ Type: x8 PCI Express 3 x8
1091+ Current Usage: In Use
1092+ Length: <OUT OF SPEC>
1093+ ID: 4
1094+ Characteristics:
1095+ 3.3 V is provided
1096+ Bus Address: 0000:01:00.0
1097+
1098+Handle 0x003B, DMI type 11, 5 bytes
1099+OEM Strings
1100+ String 1: LENOVO SystemX
1101+
1102+Handle 0x003C, DMI type 11, 5 bytes
1103+OEM Strings
1104+ String 1: $SI Integrated BaseBoard Mgmt Cont 2.50 -[TCOO16P]-
1105+
1106+Handle 0x003D, DMI type 11, 5 bytes
1107+OEM Strings
1108+ String 1: $CR CRTM Primary Code 2.50 -[TBE132I]-
1109+
1110+Handle 0x003E, DMI type 11, 5 bytes
1111+OEM Strings
1112+ String 1: $CB CRTM Backup Code 2.50 -[TBE132I]-
1113+
1114+Handle 0x003F, DMI type 11, 5 bytes
1115+OEM Strings
1116+ String 1: $DS Preboot Diagnostics (DSA) 10.1 -[DSALA6S ]-
1117+
1118+Handle 0x0040, DMI type 11, 5 bytes
1119+OEM Strings
1120+ String 1: $MV Min UEFI Version -[TBE121AUS-2.00]-
1121+
1122+Handle 0x0041, DMI type 11, 5 bytes
1123+OEM Strings
1124+ String 1: $BB UEFI Backup Version -[TBE132I-2.50]-
1125+
1126+Handle 0x0042, DMI type 11, 5 bytes
1127+OEM Strings
1128+ String 1: $QP QPI Version -[04.03.00]-
1129+
1130+Handle 0x0043, DMI type 11, 5 bytes
1131+OEM Strings
1132+ String 1: $MR MRC Version -[04.03.00]-
1133+
1134+Handle 0x0044, DMI type 11, 5 bytes
1135+OEM Strings
1136+ String 1: $CS CSM Version -[TESTBLDUS]-
1137+
1138+Handle 0x0045, DMI type 11, 5 bytes
1139+OEM Strings
1140+ String 1: $ME ME Firmware Version -[3.1.3.38]-
1141+
1142+Handle 0x0046, DMI type 11, 5 bytes
1143+OEM Strings
1144+ String 1: $BD -[]-
1145+
1146+Handle 0x0047, DMI type 11, 5 bytes
1147+OEM Strings
1148+ String 1: $CF Current UEFI Flash Bank - Primary
1149+
1150+Handle 0x0048, DMI type 11, 5 bytes
1151+OEM Strings
1152+ String 1: $BP UEFI Primary Version -[TBE132I-2.50]-
1153+
1154+Handle 0x0049, DMI type 12, 5 bytes
1155+System Configuration Options
1156+ Option 1: J7 pin1-2: TPM PP Disable, pin2-3: TPM PP Enable
1157+
1158+Handle 0x004A, DMI type 13, 22 bytes
1159+BIOS Language Information
1160+ Language Description Format: Abbreviated
1161+ Installable Languages: 1
1162+ enUS
1163+ Currently Installed Language: enUS
1164+
1165+Handle 0x004B, DMI type 32, 11 bytes
1166+System Boot Information
1167+ Status: No errors detected
1168+
1169+Handle 0x004C, DMI type 38, 18 bytes
1170+IPMI Device Information
1171+ Interface Type: KCS (Keyboard Control Style)
1172+ Specification Version: 2.0
1173+ I2C Slave Address: 0x10
1174+ NV Storage Device: Not Present
1175+ Base Address: 0x0000000000000CC0 (I/O)
1176+ Register Spacing: Successive Byte Boundaries
1177+
1178+Handle 0x004D, DMI type 41, 11 bytes
1179+Onboard Device
1180+ Reference Designation: Ethernet 1
1181+ Type: Ethernet
1182+ Status: Enabled
1183+ Type Instance: 1
1184+ Bus Address: 0000:16:00.0
1185+
1186+Handle 0x004E, DMI type 41, 11 bytes
1187+Onboard Device
1188+ Reference Designation: Ethernet 2
1189+ Type: Ethernet
1190+ Status: Enabled
1191+ Type Instance: 2
1192+ Bus Address: 0000:16:00.1
1193+
1194+Handle 0x004F, DMI type 41, 11 bytes
1195+Onboard Device
1196+ Reference Designation: Ethernet 3
1197+ Type: Ethernet
1198+ Status: Enabled
1199+ Type Instance: 3
1200+ Bus Address: 0000:16:00.2
1201+
1202+Handle 0x0050, DMI type 41, 11 bytes
1203+Onboard Device
1204+ Reference Designation: Ethernet 4
1205+ Type: Ethernet
1206+ Status: Enabled
1207+ Type Instance: 4
1208+ Bus Address: 0000:16:00.3
1209+
1210+Handle 0x0051, DMI type 41, 11 bytes
1211+Onboard Device
1212+ Reference Designation: Video
1213+ Type: Video
1214+ Status: Enabled
1215+ Type Instance: 1
1216+ Bus Address: 0000:14:00.0
1217+
1218+Handle 0xFEFF, DMI type 127, 4 bytes
1219+End Of Table
1220+
1221diff --git a/checkbox_support/parsers/tests/test_dmidecode.py b/checkbox_support/parsers/tests/test_dmidecode.py
1222index 3df81a6..c4e94d7 100644
1223--- a/checkbox_support/parsers/tests/test_dmidecode.py
1224+++ b/checkbox_support/parsers/tests/test_dmidecode.py
1225@@ -24,6 +24,8 @@ from __future__ import unicode_literals
1226 from io import StringIO
1227 from unittest import TestCase
1228
1229+from pkg_resources import resource_filename
1230+
1231 from checkbox_support.parsers.dmidecode import DmidecodeParser
1232 from checkbox_support.parsers.tests.test_dmi import TestDmiMixin, DmiResult
1233
1234@@ -92,12 +94,14 @@ BIOS Information
1235 \tFirmware Revision: 1.7
1236 """
1237
1238+
1239 class TestDmidecodeArtificialParser(TestCase, TestDmiMixin):
1240
1241 def getParser(self):
1242 stream = StringIO(FAKE_DMIDECODE)
1243 return DmidecodeParser(stream)
1244
1245+
1246 class TestDmidecodeRealParser(TestCase):
1247
1248 """
1249@@ -159,3 +163,30 @@ class TestDmidecodeRealParser(TestCase):
1250 self.assertEqual(device.raw_attributes['sku_number'], "LENOVO_MT_20AM")
1251 self.assertEqual(device.raw_attributes['uuid'],
1252 "170AFF01-52A1-11CB-A7A6-EB7272884401")
1253+
1254+
1255+class TestLenovoSystemX(TestCase):
1256+
1257+ def parse(self):
1258+ resource = 'parsers/tests/dmidecode_data/LENOVO_SYSTEMX.txt'
1259+ filename = resource_filename('checkbox_support', resource)
1260+ with open(filename, 'rt', encoding='UTF-8') as stream:
1261+ parser = DmidecodeParser(stream)
1262+ result = DmiResult()
1263+ parser.run(result)
1264+ return result
1265+
1266+ def test_system_product_name(self):
1267+ result = self.parse()
1268+ dmi_device = result.getDevice("SYSTEM")
1269+ self.assertTrue(dmi_device)
1270+ correct_values = {
1271+ 'vendor': 'LENOVO',
1272+ 'name': 'System x3550 M5: -[5463AC1]-',
1273+ 'version': '07',
1274+ 'serial': '06EEEAR',
1275+ 'uuid': '7b75005c-d029-11e4-9aa6-40f2e9b938a0',
1276+ 'wake_up_type': 'Power Switch',
1277+ 'sku_number': '(none)',
1278+ 'family': 'System X'}
1279+ self.assertDictEqual(dmi_device.raw_attributes, correct_values)

Subscribers

People subscribed via source and target branches