sbsv2/raptor/test/smoke_suite/timeout.py
branchfix
changeset 415 6fdebb56755a
parent 414 fdf44dc5eff3
equal deleted inserted replaced
414:fdf44dc5eff3 415:6fdebb56755a
    24 	exitCode = "128"
    24 	exitCode = "128"
    25 
    25 
    26 	t.id = "60a"
    26 	t.id = "60a"
    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_singleline = [
    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_singleline = [
    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'",