Skip to content

Commit 9a3b2be

Browse files
committed
Add HIR Torture test for SURV Ack timeout.
And also continue to execute the torture tests, if ipmi sol console drops in b/w(check_sol_console). Signed-off-by: Pridhiviraj Paidipeddi <[email protected]>
1 parent 82112ce commit 9a3b2be

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

Diff for: op-test

+3
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,9 @@ if OpTestConfiguration.conf.args.list_suites:
308308
print '{0:34}{1}'.format(key, suites[key].__doc__)
309309
exit(0)
310310

311+
reload(sys)
312+
sys.setdefaultencoding("utf8")
313+
311314
t = unittest.TestSuite()
312315

313316
if OpTestConfiguration.conf.args.run_suite:

Diff for: testcases/fspresetReload.py

+9-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,10 @@ def check_for_fsp_host_interfaces(self):
174174
self.assertTrue(self.check_for_inbandipmi(), "inband ipmi interface failed after fsp rr")
175175
self.assertTrue(self.check_for_sensors(), "inband sensors failed after fsp rr")
176176
self.assertTrue(self.check_for_nvram(), "nvram interface failed after fsp rr")
177-
self.check_for_sol_console()
177+
try:
178+
self.check_for_sol_console()
179+
except:
180+
pass
178181

179182

180183
def look_for_in_opal_log(self, pattern):
@@ -245,6 +248,10 @@ class HIRTorture(HIR):
245248
def number_of_resets(self):
246249
return 20
247250

251+
class SIRTorture(SIR):
252+
def number_of_resets(self):
253+
return 20
254+
248255
def suite():
249256
s = unittest.TestSuite()
250257
s.addTest(FIR())
@@ -255,4 +262,5 @@ def torture_suite():
255262
s = unittest.TestSuite()
256263
s.addTest(FIRTorture())
257264
s.addTest(HIRTorture())
265+
s.addTest(SIRTorture())
258266
return s

0 commit comments

Comments
 (0)