Merge "Fix the error of androidmk unittest" into main

This commit is contained in:
Treehugger Robot 2024-01-18 02:22:17 +00:00 committed by Gerrit Code Review
commit 936a57d3e9

View file

@ -1750,6 +1750,9 @@ android_app {
} }
func TestEndToEnd(t *testing.T) { func TestEndToEnd(t *testing.T) {
// Skip checking Android.mk path with cleaning "ANDROID_BUILD_TOP"
t.Setenv("ANDROID_BUILD_TOP", "")
for i, test := range testCases { for i, test := range testCases {
expected, err := bpfix.Reformat(test.expected) expected, err := bpfix.Reformat(test.expected)
if err != nil { if err != nil {