@@ -83,20 +83,26 @@ public static Collection examples() {
8383
8484 paths .add (new Path (curexample .getValue ().toString ()));
8585 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
8887
89- examples .add (theData );
90- }
9188 if (isExampleOkForUno (curexample .getKey ())) {
9289 Object [] theData = new Object [] { "Uno :" + curexample .getKey (), unoBoardid , codeDescriptor };
9390
9491 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+ }
100106 }
101107 }
102108
@@ -198,7 +204,11 @@ public static void BuildAndVerify(BoardDescriptor boardid, CodeDescriptor codeDe
198204 if (Shared .hasBuildErrors (theTestProject )) {
199205 // give up
200206 fail ("Failed to compile the project:" + projectName + " build errors" );
207+ } else {
208+ theTestProject .delete (true , null );
201209 }
210+ } else {
211+ theTestProject .delete (true , null );
202212 }
203213 } catch (CoreException e ) {
204214 e .printStackTrace ();
0 commit comments