File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
tests/integration_tests/functional Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -265,9 +265,13 @@ def test_cpu_config_dump_vs_actual(
265
265
266
266
# Compare CPUID between actual and dumped CPU config.
267
267
# Verify all the actual CPUIDs are covered and match with the dumped one.
268
+ keys_not_in_dump = {}
268
269
for key , actual in actual_cpu_config ["cpuid" ].items ():
269
270
if (key [0 ], key [1 ]) in UNAVAILABLE_CPUID_ON_DUMP_LIST :
270
271
continue
272
+ if key not in dump_cpu_config ["cpuid" ]:
273
+ keys_not_in_dump [key ] = actual_cpu_config ["cpuid" ][key ]
274
+ continue
271
275
dump = dump_cpu_config ["cpuid" ][key ]
272
276
273
277
if key in CPUID_EXCEPTION_LIST :
@@ -278,6 +282,8 @@ def test_cpu_config_dump_vs_actual(
278
282
f"{ actual = :#034b} vs. { dump = :#034b} "
279
283
)
280
284
285
+ assert len (keys_not_in_dump ) == 0
286
+
281
287
# Verify all CPUID on the dumped CPU config are covered in actual one.
282
288
for key , dump in dump_cpu_config ["cpuid" ].items ():
283
289
actual = actual_cpu_config ["cpuid" ].get (key )
You can’t perform that action at this time.
0 commit comments