|
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 AntiTargetSmokeTest |
|
18 |
|
19 def run(): |
|
20 t = AntiTargetSmokeTest() |
|
21 t.id = "59" |
|
22 t.name = "retry" |
|
23 # |
|
24 # -t 3 means try each recipe up to 3 times, if it fails. |
|
25 # |
|
26 # There are 3 FLM calls: |
|
27 # retry_1 fails once then succeeds. |
|
28 # retry_2 fails twice then succeeds. |
|
29 # retry_3 fails all 3 times. |
|
30 # |
|
31 # use -k in case the retry_3 case happens to be run first. |
|
32 # |
|
33 t.command = "sbs -b smoke_suite/test_resources/retry/bld.inf -c armv5_urel -t 3 -k" |
|
34 t.targets = [ |
|
35 "$(EPOCROOT)/epoc32/build/retry_1.1", |
|
36 "$(EPOCROOT)/epoc32/build/retry_1.ok", |
|
37 "$(EPOCROOT)/epoc32/build/retry_2.1", |
|
38 "$(EPOCROOT)/epoc32/build/retry_2.2", |
|
39 "$(EPOCROOT)/epoc32/build/retry_2.ok", |
|
40 "$(EPOCROOT)/epoc32/build/retry_3.1", |
|
41 "$(EPOCROOT)/epoc32/build/retry_3.2", |
|
42 "$(EPOCROOT)/epoc32/build/retry_3.3" |
|
43 ] |
|
44 t.antitargets = [ |
|
45 "$(EPOCROOT)/epoc32/build/retry_1.2", |
|
46 "$(EPOCROOT)/epoc32/build/retry_1.3", |
|
47 "$(EPOCROOT)/epoc32/build/retry_2.3", |
|
48 "$(EPOCROOT)/epoc32/build/retry_3.ok" |
|
49 ] |
|
50 t.returncode = 1 |
|
51 t.run() |
|
52 return t |