sbsv2/raptor/test/smoke_suite/annofile2log.py
branchfix
changeset 362 0ff20a0b1aa9
child 363 4549b6c6c3d8
equal deleted inserted replaced
361:e17a12b3db40 362:0ff20a0b1aa9
       
     1 #
       
     2 # Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 # All rights reserved.
       
     4 # This component and the accompanying materials are made available
       
     5 # under the terms of the License "Eclipse Public License v1.0"
       
     6 # which accompanies this distribution, and is available
       
     7 # at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 #
       
     9 # Initial Contributors:
       
    10 # Nokia Corporation - initial contribution.
       
    11 #
       
    12 # Contributors:
       
    13 #
       
    14 # Description: 
       
    15 #
       
    16 
       
    17 from raptor_tests import SmokeTest
       
    18 
       
    19 def run():
       
    20 	t = SmokeTest()
       
    21 	t.id = "43563"
       
    22 	t.name = "annofile2log_canned"
       
    23 	t.description = "test workaround for log corruption from a make engine whose name begins with 'e'"
       
    24 	
       
    25 	t.usebash = True
       
    26 	t.errors = 0
       
    27 	t.returncode = 1
       
    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))"
       
    30 	
       
    31 	t.mustmatch_multiline = [ 
       
    32 		".*1a2.*" + 
       
    33 		"Starting build: 488235.*" +
       
    34 		"14009c12884.*" +
       
    35 		"---.*" +
       
    36 		"Finished build: 488235   Duration: 1:15 \(m:s\)   Cluster availability: 100%.*"
       
    37                 ]
       
    38 
       
    39 
       
    40 	t.run()
       
    41 
       
    42 	t.print_result()
       
    43 	return t