From a19a2095e8a89a5961dcf7983fd6fd0a9ff5fed2 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 24 Feb 2015 13:44:17 +0000 Subject: LinuxSandboxedStrategy: only set debug if --verbose_failures is set. -- MOS_MIGRATED_REVID=87048867 --- .../google/devtools/build/lib/standalone/NamespaceSandboxRunner.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java') diff --git a/src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java b/src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java index 3c7a8e0ad8..e43a7d17d2 100644 --- a/src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java +++ b/src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java @@ -45,7 +45,7 @@ import java.util.Map.Entry; * changes invocation if necessary. */ public class NamespaceSandboxRunner { - private final boolean debug = true; + private final boolean debug; private final PathFragment sandboxDirectory; private final Path sandboxPath; private final List mounts; @@ -58,11 +58,12 @@ public class NamespaceSandboxRunner { public NamespaceSandboxRunner(BlazeDirectories directories, Spawn spawn, PathFragment includePrefix, List includeDirectories, - ImmutableMap manifests) { + ImmutableMap manifests, boolean debug) { String md5sum = Fingerprint.md5Digest(spawn.getResourceOwner().getPrimaryOutput().toString()); this.sandboxDirectory = new PathFragment("sandbox-root-" + md5sum); this.sandboxPath = directories.getExecRoot().getRelative("sandboxes").getRelative(sandboxDirectory); + this.debug = debug; this.mounts = new ArrayList<>(); this.tools = directories.getExecRoot().getChild("tools"); this.embeddedBinaries = directories.getEmbeddedBinariesRoot(); -- cgit v1.2.3