diff options
author | 2024-01-11 14:34:27 +0800 | |
---|---|---|
committer | 2024-01-17 15:09:29 +0800 | |
commit | d63054e21409562f6a95629fec0b8d7ef0228d93 (patch) | |
tree | ec21b59e2007389849847824a11439056b45592f /androidmk | |
parent | 1c4cc3d40e0081a065d44b0172e66fb58b1967a1 (diff) |
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
Diffstat (limited to 'androidmk')
-rw-r--r-- | androidmk/androidmk/androidmk_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/androidmk/androidmk/androidmk_test.go b/androidmk/androidmk/androidmk_test.go index 08bbb3991..76833ea47 100644 --- a/androidmk/androidmk/androidmk_test.go +++ b/androidmk/androidmk/androidmk_test.go @@ -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 { |