diff options
author | 2015-02-24 13:44:17 +0000 | |
---|---|---|
committer | 2015-02-24 13:44:17 +0000 | |
commit | a19a2095e8a89a5961dcf7983fd6fd0a9ff5fed2 (patch) | |
tree | 9731abf1fdaa9020afaba8444ac5a0e448c1c424 /src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java | |
parent | 1b18ae9eb999c137e7e37fc2033514363c569d75 (diff) |
LinuxSandboxedStrategy: only set debug if --verbose_failures is set.
--
MOS_MIGRATED_REVID=87048867
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/standalone/NamespaceSandboxRunner.java | 5 |
1 files changed, 3 insertions, 2 deletions
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<String> mounts; @@ -58,11 +58,12 @@ public class NamespaceSandboxRunner { public NamespaceSandboxRunner(BlazeDirectories directories, Spawn spawn, PathFragment includePrefix, List<PathFragment> includeDirectories, - ImmutableMap<PathFragment, Artifact> manifests) { + ImmutableMap<PathFragment, Artifact> 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(); |