sbsv2/raptor/test/smoke_suite/retry.py
author Jon Chatten
Fri, 05 Feb 2010 18:31:38 +0000
branchfix
changeset 225 d401dbd3a410
parent 3 e1eecf4d390d
permissions -rw-r--r--
Ensure that parallel parsing sbs calls pass on --no-depend-generate and --no-depend-include (as these influence makefile generation). Make .DEFAULT a double-colon target, so we don't have to worry about duplicate instances due to -include. Code review updates.

#
# Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
# All rights reserved.
# This component and the accompanying materials are made available
# under the terms of the License "Eclipse Public License v1.0"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description: 
#

from raptor_tests import AntiTargetSmokeTest

def run():
	t = AntiTargetSmokeTest()
	t.id = "59"
	t.name = "retry"
	#
	# -t 3 means try each recipe up to 3 times, if it fails.
	#
	# There are 3 FLM calls: 
	#    retry_1 fails once then succeeds.
	#    retry_2 fails twice then succeeds.
	#    retry_3 fails all 3 times.
	#
	# use -k in case the retry_3 case happens to be run first.
	#
	t.command = "sbs -b smoke_suite/test_resources/retry/bld.inf -c armv5_urel -t 3 -k"
	t.targets = [
		"$(EPOCROOT)/epoc32/build/retry_1.1",
		"$(EPOCROOT)/epoc32/build/retry_1.ok",
		"$(EPOCROOT)/epoc32/build/retry_2.1",
		"$(EPOCROOT)/epoc32/build/retry_2.2",
		"$(EPOCROOT)/epoc32/build/retry_2.ok",
		"$(EPOCROOT)/epoc32/build/retry_3.1",
		"$(EPOCROOT)/epoc32/build/retry_3.2",
		"$(EPOCROOT)/epoc32/build/retry_3.3"
	]
	t.antitargets = [
		"$(EPOCROOT)/epoc32/build/retry_1.2",
		"$(EPOCROOT)/epoc32/build/retry_1.3",
		"$(EPOCROOT)/epoc32/build/retry_2.3",
		"$(EPOCROOT)/epoc32/build/retry_3.ok"
	]
	t.returncode = 1
	t.run()
	return t