From d210afa4063ced933d7d8dbe43be85c02e399e53 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Tue, 16 Mar 2021 17:31:20 +0000 Subject: [PATCH] Remove android/apex_test.go use of buildDir This test does not process any bp files it just needs a directory to pass to TestConfig so it can use that to fake a PathContext. So, this just replaces buildDir with a call to T.TempDir(). Bug: 182885307 Test: m nothing Change-Id: I17c0435b7c45e4f8cb8b03a8ec8e57cfe397975b --- android/apex_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/apex_test.go b/android/apex_test.go index 1f786e65f..b5323e8af 100644 --- a/android/apex_test.go +++ b/android/apex_test.go @@ -121,7 +121,7 @@ func Test_mergeApexVariations(t *testing.T) { for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - config := TestConfig(buildDir, nil, "", nil) + config := TestConfig(t.TempDir(), nil, "", nil) ctx := &configErrorWrapper{config: config} gotMerged, gotAliases := mergeApexVariations(ctx, tt.in) if !reflect.DeepEqual(gotMerged, tt.wantMerged) {