sbsv2/raptor/test/smoke_suite/timeout.py
branchfix
changeset 414 fdf44dc5eff3
parent 240 fbc6a8ad3957
child 415 6fdebb56755a
equal deleted inserted replaced
404:d420eba6f3a0 414:fdf44dc5eff3
    27 	t.name = "timeout"
    27 	t.name = "timeout"
    28 	t.usebash = True
    28 	t.usebash = True
    29 	t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -f-"
    29 	t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -f-"
    30 
    30 
    31 	t.mustmatch = [
    31 	t.mustmatch = [
    32 		"status exit='failed' code='" + exitCode + "' attempt='1' *reason='timeout'",
    32 		"status exit='failed' code='" + exitCode + "' attempt='1' reason='timeout'",
    33 	]
    33 	]
    34 	t.errors = -1
    34 	t.errors = -1
    35 	t.returncode = 1
    35 	t.returncode = 1
    36 	t.run()
    36 	t.run()
    37 	
    37 	
    38 	t.id = "60b"
    38 	t.id = "60b"
    39 	t.name = "timeout with retries"
    39 	t.name = "timeout with retries"
    40 	t.usebash = True
    40 	t.usebash = True
    41 	t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -t 3 -f-"
    41 	t.command = "sbs -b smoke_suite/test_resources/timeout/bld.inf -t 3 -f-"
    42 
    42 
    43 	t.mustmatch = [
    43 	t.mustmatch_singleline = [
    44 		"status exit='retry' code='" + exitCode + "' attempt='1' *reason='timeout'",
    44 		"status exit='retry' code='" + exitCode + "' attempt='1' reason='timeout'",
    45 		"status exit='retry' code='" + exitCode + "' attempt='2' *reason='timeout'",
    45 		"status exit='retry' code='" + exitCode + "' attempt='2' reason='timeout'",
    46 		"status exit='failed' code='" + exitCode + "' attempt='3' *reason='timeout'",
    46 		"status exit='failed' code='" + exitCode + "' attempt='3' reason='timeout'",
    47 	]
    47 	]
    48 	t.errors = -1
    48 	t.errors = -1
    49 	t.returncode = 1
    49 	t.returncode = 1
    50 	t.run()
    50 	t.run()
    51 	
    51