Fix the error of androidmk unittest

The unittest checking Android.mk path which is the relative path with
"ANDROID_BUILD_TOP". This can be fix with clean it.

Bug: 319563069
Test: 1. cd build/soong/androidmk/androidmk
      2. go test
Change-Id: Iaf6c331abeadfec3416387f416aaebc0ecfa8a21
This commit is contained in:
Herbert Xue 2024-01-11 14:34:27 +08:00
parent 1c4cc3d40e
commit d63054e214

View file

@ -1730,6 +1730,9 @@ android_test {
}
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 {
expected, err := bpfix.Reformat(test.expected)
if err != nil {