[Esbox-commits] r1909 - branches/work_Ed/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:12:20 EEST 2009
Author: eswartz
Date: 2009-07-30 21:12:15 +0300 (Thu, 30 Jul 2009)
New Revision: 1909
Modified:
branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java
Log:
Try to squash a persistent unit test failure
Modified: branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java
===================================================================
--- branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java 2009-07-30 16:35:12 UTC (rev 1908)
+++ branches/work_Ed/org.maemo.esbox.scratchbox.tests/src/org/maemo/esbox/scratchbox/tests/commands/TestRemoveSb2Command.java 2009-07-30 18:12:15 UTC (rev 1909)
@@ -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