File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,14 @@ def validate_secureboot_parameter(self, machine_config):
79
79
80
80
81
81
def runTest (self ):
82
+
83
+ for key in self .machine_config :
84
+ self .callConfig (key )
85
+
86
+ def callConfig (self , key ):
87
+
82
88
status = 0
83
- if self . machine_config . __contains__ ( ' lpar' ) :
89
+ if key == " lpar" :
84
90
self .sb_enable = None
85
91
config_value = self .machine_config ['lpar' ]
86
92
if 'secureboot' in config_value :
@@ -89,7 +95,7 @@ def runTest(self):
89
95
if status :
90
96
self .fail (status )
91
97
92
- if self . machine_config . __contains__ ( ' cec' ) :
98
+ if key == " cec" :
93
99
lmb_size = None
94
100
num_hugepages = None
95
101
setup = 0
@@ -114,7 +120,7 @@ def runTest(self):
114
120
if not setup :
115
121
self .skipTest ("Not implemented for other CEC settings" )
116
122
117
- if self . machine_config . __contains__ ( 'os' ) :
123
+ if key == "os" :
118
124
setup = 0
119
125
sb_enable = None
120
126
hugepage_size = None
You can’t perform that action at this time.
0 commit comments