[Esbox-commits] r1910 - trunk/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands

eswartz at garage.maemo.org eswartz at garage.maemo.org
Thu Jul 30 21:27:33 EEST 2009


Author: eswartz
Date: 2009-07-30 21:27:32 +0300 (Thu, 30 Jul 2009)
New Revision: 1910

Modified:
   trunk/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java
Log:
Merge rev 1906 from work_Ed branch

Modified: trunk/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java
===================================================================
--- trunk/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java	2009-07-30 18:12:15 UTC (rev 1909)
+++ trunk/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java	2009-07-30 18:27:32 UTC (rev 1910)
@@ -11,7 +11,9 @@
 package org.maemo.esbox.scratchbox.tests.commands;
 
 import org.eclipse.core.runtime.NullProgressMonitor;
+import org.maemo.esbox.internal.scratchbox.sb2.command.MaemoRootstrapCommand;
 import org.maemo.mica.common.core.MicaException;
+import org.maemo.mica.internal.api.common.core.sdk.BaseSDK;
 
 import java.util.ArrayList;
 import java.util.List;
@@ -63,7 +65,8 @@
 		if (targets.contains(TARGET)) {
 			try {
 				maemoRootstrapCommand.remove(TARGET, new NullProgressMonitor());
-				
+				// the command does not communicate with the SDK so explicitly flush the cache
+				((BaseSDK) sb2Sdk).getCache().clear();
 				targets = sb2Sdk.getTargets();
 				assertFalse(targets.contains(TARGET));
 			} catch (MicaException e) {



More information about the Esbox-commits mailing list