aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java
diff options
context:
space:
mode:
authorGravatar jmmv <jmmv@google.com>2018-05-25 07:50:28 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-05-25 07:51:50 -0700
commit79b2c1699d5e332d5e571e425452a34332ed43b3 (patch)
treed607cfb6acc9f9168be5736495fdbdf2e5e5a58c /src/test/java
parent585418dca70e29dbe478a6095be2c1c97e24d596 (diff)
Fix build and run of RealSandboxfsProcessTest.
https://github.com/bazelbuild/bazel/commit/56d1b1c3122a3d1ec111baab339631b8c42c2c31 changed the signature of SandboxfsProcess#mount() to take a PathFragment instead of a Path, and this broke the build of the test above. Given that the test is marked as manual, this was not caught by CI. Further, the test was failing to link in the test runner class, so it would not execute properly. The missing dependency was incorrectly removed by unknown commit because it had been specified as a deps instead of a runtime_deps. RELNOTES: None. PiperOrigin-RevId: 198048748
Diffstat (limited to 'src/test/java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/sandbox/RealSandboxfsProcessTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/sandbox/RealSandboxfsProcessTest.java b/src/test/java/com/google/devtools/build/lib/sandbox/RealSandboxfsProcessTest.java
index ffce1d2539..2739d92109 100644
--- a/src/test/java/com/google/devtools/build/lib/sandbox/RealSandboxfsProcessTest.java
+++ b/src/test/java/com/google/devtools/build/lib/sandbox/RealSandboxfsProcessTest.java
@@ -54,6 +54,7 @@ public class RealSandboxfsProcessTest extends BaseSandboxfsProcessTest {
if (!sandboxfs.isExecutable()) {
fail("SANDBOXFS must point to an executable binary");
}
- return RealSandboxfsProcess.mount(sandboxfs, mountPoint, fileSystem.getPath("/dev/stderr"));
+ return RealSandboxfsProcess.mount(
+ sandboxfs.asFragment(), mountPoint, fileSystem.getPath("/dev/stderr"));
}
}