sbsv2/raptor/test/smoke_suite/annofile2log.py
changeset 365 bab2d423b063
parent 363 4549b6c6c3d8
child 408 a819f9223567
child 450 63f3bc391c14
equal deleted inserted replaced
308:7830b8253b5a 365:bab2d423b063
       
     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.{1,3}" +
       
    34 		"14009c12884.{1,4}" +
       
    35 		"---.{1,4}" +
       
    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