@@ -83,20 +83,26 @@ public static Collection examples() {
83
83
84
84
paths .add (new Path (curexample .getValue ().toString ()));
85
85
CodeDescriptor codeDescriptor = CodeDescriptor .createExample (false , paths );
86
- if (isExampleOkForLeonardo (curexample .getKey ())) {
87
- Object [] theData = new Object [] { "leonardo :" + curexample .getKey (), leonardoBoardid , codeDescriptor };
86
+ // with the current amount of examples only do one
88
87
89
- examples .add (theData );
90
- }
91
88
if (isExampleOkForUno (curexample .getKey ())) {
92
89
Object [] theData = new Object [] { "Uno :" + curexample .getKey (), unoBoardid , codeDescriptor };
93
90
94
91
examples .add (theData );
95
- }
96
- if (isExampleOkForEsplora (curexample .getKey ())) {
97
- Object [] theData = new Object [] { "Esplora :" + curexample .getKey (), EsploraBoardid , codeDescriptor };
98
-
99
- examples .add (theData );
92
+ } else {
93
+ if (isExampleOkForLeonardo (curexample .getKey ())) {
94
+ Object [] theData = new Object [] { "leonardo :" + curexample .getKey (), leonardoBoardid ,
95
+ codeDescriptor };
96
+
97
+ examples .add (theData );
98
+ } else {
99
+ if (isExampleOkForEsplora (curexample .getKey ())) {
100
+ Object [] theData = new Object [] { "Esplora :" + curexample .getKey (), EsploraBoardid ,
101
+ codeDescriptor };
102
+
103
+ examples .add (theData );
104
+ }
105
+ }
100
106
}
101
107
}
102
108
@@ -198,7 +204,11 @@ public static void BuildAndVerify(BoardDescriptor boardid, CodeDescriptor codeDe
198
204
if (Shared .hasBuildErrors (theTestProject )) {
199
205
// give up
200
206
fail ("Failed to compile the project:" + projectName + " build errors" );
207
+ } else {
208
+ theTestProject .delete (true , null );
201
209
}
210
+ } else {
211
+ theTestProject .delete (true , null );
202
212
}
203
213
} catch (CoreException e ) {
204
214
e .printStackTrace ();
0 commit comments