Fix bogus message about sandboxfs staying mounted, even when it wasn't enabled in the first place.
@@ -316,12 +316,15 @@ public final class SandboxModule extends BlazeModule {
}
private void unmountSandboxfs() {
- if (sandboxfsProcess != null && shouldCleanupSandboxBase) {
+ if (sandboxfsProcess != null) {
+ if (shouldCleanupSandboxBase) {
sandboxfsProcess.destroy();
sandboxfsProcess = null;
} else {
checkNotNull(env, "env not initialized; was beforeCommand called?");
- env.getReporter().handle(Event.info("Leaving sandboxfs mounted because of --sandbox_debug"));
+ env.getReporter()
+ .handle(Event.info("Leaving sandboxfs mounted because of --sandbox_debug"));
+ }
}
}
