@@ -50,11 +50,12 @@ def setUp(self):
50
50
self .cv_SYSTEM .goto_state (OpSystemState .OS )
51
51
52
52
def opal_elog_init (self ):
53
- if "FSP" not in self .bmc_type :
54
- self .skipTest ("FSP Platform OPAL Error log tests" )
55
-
56
53
rc = self .cv_HOST .host_check_sysfs_path_availability ("/sys/firmware/opal/elog/" )
57
- self .assertTrue (rc , "opal elog sysfs path is not available in host" )
54
+ if "FSP" in self .bmc_type :
55
+ self .assertTrue (rc , "opal elog sysfs path is not available in host" )
56
+ else :
57
+ self .skipTest ("elog test not implemented for non-FSP systems" )
58
+
58
59
self .cv_FSP .fsp_get_console ()
59
60
if not self .cv_FSP .mount_exists ():
60
61
raise OpTestError ("Please mount NFS and retry the test" )
@@ -66,14 +67,11 @@ def opal_elog_init(self):
66
67
self .assertTrue (self .cv_HOST .host_get_status_of_opal_errd_daemon (),
67
68
"opal_errd daemon is failed to start" )
68
69
69
- def tearDown (self ):
70
- self .cv_HOST .host_gather_opal_msg_log ()
71
- self .cv_HOST .host_gather_kernel_log ()
72
70
73
71
class BasicTest (OpalErrorLog ):
74
72
75
73
def count (self ):
76
- self .count = 128
74
+ self .count = 8
77
75
return self .count
78
76
79
77
##
@@ -105,6 +103,9 @@ def runTest(self):
105
103
break
106
104
time .sleep (1 )
107
105
print "Waiting for transfer of error logs to Host: (%d\%d)" % (j , tries )
106
+ if not transfer_complete :
107
+ self .cv_HOST .host_gather_opal_msg_log ()
108
+ self .cv_HOST .host_gather_kernel_log ()
108
109
self .assertTrue (transfer_complete , "Failed to transfer all error logs to Host in a minute" )
109
110
self .cv_FSP .clear_errorlogs_in_fsp ()
110
111
0 commit comments