sbsv2/raptor/test/smoke_suite/terminal_filter_tests.py
changeset 3 e1eecf4d390d
child 378 169ad30bb410
equal deleted inserted replaced
1:be27ed110b50 3:e1eecf4d390d
       
     1 #
       
     2 # Copyright (c) 2009 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 
       
    21 	t = SmokeTest()
       
    22 	t.id = "87"
       
    23 	t.name = "terminal_filter_tests"
       
    24 	t.description = "terminal_filter_tests: Tests the terminal filter against" \
       
    25 			+ " log files to ensure it 'does the right thing'"
       
    26 	t.command = "$(SBS_HOME)/test/smoke_suite/test_resources/refilter/testfilterterminal"
       
    27 	t.countmatch = [
       
    28 		# One of each type of error occurs early in the 'sbs' call where there
       
    29 		# is a recipe inside another recipe. Then the errors occur in the
       
    30 		# opposite order where are 2 closing tags next to each other before 2
       
    31 		# opening tags appear next to each other
       
    32 			["sbs: error: Opening recipe tag found before closing recipe tag for previous recipe:", 2],
       
    33 			["Discarding previous recipe \(Possible logfile corruption\)", 2],
       
    34 			["sbs: error: Closing recipe tag found before opening recipe tag:", 2],
       
    35 			["Unable to print recipe data \(Possible logfile corruption\)", 2]
       
    36 	]
       
    37 	t.errors = 4
       
    38 	t.run()
       
    39 	return t