sbsv2/raptor/test/smoke_suite/annofile2log.py
changeset 18 de5b887c98f7
parent 13 c327db0664bb
equal deleted inserted replaced
14:eb060913c963 18:de5b887c98f7
    17 from raptor_tests import SmokeTest
    17 from raptor_tests import SmokeTest
    18 
    18 
    19 def run():
    19 def run():
    20 	t = SmokeTest()
    20 	t = SmokeTest()
    21 	t.id = "43563"
    21 	t.id = "43563"
    22 	t.name = "annofile2log_canned"
    22 	t.name = "annofile2log"
    23 	t.description = "test workaround for log corruption from a make engine whose name begins with 'e'"
    23 	t.description = "test workaround for log corruption from a make engine whose name begins with 'e'"
    24 	
    24 	
    25 	t.usebash = True
    25 	t.usebash = True
    26 	t.errors = 0
    26 	t.errors = 0
    27 	t.returncode = 0
    27 	t.returncode = 0
    28 	t.exceptions = 0
    28 	t.exceptions = 0
    29 	t.command = "cd smoke_suite/test_resources/annofile2log && ( diff -wB <(python testanno2log.py <(bzip2 -dc scrubbed_ncp_dfs_resource.anno.bz2)) <(bzip2 -dc scrubbed_ncp_dfs_resource.stdout.bz2))"
    29 	t.command = 'cd smoke_suite/test_resources/annofile2log && ( FROMANNO="`mktemp`" ; bzip2 -dc scrubbed_ncp_dfs_resource.anno.bz2 | python testanno2log.py  >"${FROMANNO}" && FROMSTDOUT="`mktemp`"; bzip2 -dc scrubbed_ncp_dfs_resource.stdout.bz2 > "${FROMSTDOUT}" && diff -wB "${FROMANNO}" "${FROMSTDOUT}"; RET=$? ; rm "${FROMANNO}" "${FROMSTDOUT}"; exit $RET )'
    30 	
    30 	
    31 	t.mustmatch_multiline = [ 
    31 	t.mustmatch_multiline = [ 
    32 		"^ *.?"
    32 		"^ *.?"
    33                 ]
    33                 ]
    34 
    34