summaryrefslogtreecommitdiff
path: root/java/droidstubs_test.go
diff options
context:
space:
mode:
author Cole Faust <colefaust@google.com> 2023-11-30 17:26:37 -0800
committer Cole Faust <colefaust@google.com> 2023-12-19 12:14:01 -0800
commite8561c6108e5be1e8cf2fe69881aa9575a064026 (patch)
tree668e198044c9b67a26e4762b0711767663f5080a /java/droidstubs_test.go
parentcd11c9535fe7e09fb0ca385cfeb39880e4906980 (diff)
Include "soong" in sandboxed out paths
Previously, the path to built files in the sandbox would be out/.intermediates/... instead of out/soong/.intermediates/.... After this cl, it will be out/soong/.intermediates/.... This makes it more consistent with the non-sandboxed paths, which is easier for developers. CtsApkVerityTestDebugFiles is a genrule that's used to find the paths to other modules. Developers were expected to build it, then copy all the files listed in its output file to a temporary directory. Those paths would be wrong before this change. Bug: 307824623 Test: ./build/soong/tests/genrule_sandbox_test.py CtsApkVerityTestDebugFiles Change-Id: Iadf9e3240a2c828567e46b6b02cc14004f30e8bf
Diffstat (limited to 'java/droidstubs_test.go')
-rw-r--r--java/droidstubs_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/droidstubs_test.go b/java/droidstubs_test.go
index 17cad8958..7bcaca1d4 100644
--- a/java/droidstubs_test.go
+++ b/java/droidstubs_test.go
@@ -213,7 +213,7 @@ func TestDroidstubsSandbox(t *testing.T) {
}
manifest := android.RuleBuilderSboxProtoForTests(t, ctx, m.Output("metalava.sbox.textproto"))
- if g, w := manifest.Commands[0].GetCommand(), "reference __SBOX_SANDBOX_DIR__/out/.intermediates/foo/gen/foo.txt"; !strings.Contains(g, w) {
+ if g, w := manifest.Commands[0].GetCommand(), "reference __SBOX_SANDBOX_DIR__/out/soong/.intermediates/foo/gen/foo.txt"; !strings.Contains(g, w) {
t.Errorf("Expected command to contain %q, got %q", w, g)
}
}