From 2c4ca8d73f91913792bc59958ef951a29b8f24d9 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Sun, 7 Mar 2021 19:18:38 +0000 Subject: Support test fixtures in rust package Replaces the rust specific rustTestCtx mechanism with the general test fixtures mechanism as converting it to use preparers was not possible. Also, removes usages of the buildDir variable and removes it as it is no longer needed. Bug: 181070625 Test: m nothing Change-Id: I0176a7b6fb2d390ae23693f1e198da5124b4be63 --- rust/clippy_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/clippy_test.go') diff --git a/rust/clippy_test.go b/rust/clippy_test.go index e24f666df..e90564f63 100644 --- a/rust/clippy_test.go +++ b/rust/clippy_test.go @@ -66,7 +66,7 @@ func TestClippy(t *testing.T) { for _, tc := range clippyLintTests { t.Run("path="+tc.modulePath, func(t *testing.T) { - config := android.TestArchConfig(buildDir, nil, bp, fs) + config := android.TestArchConfig(t.TempDir(), nil, bp, fs) ctx := CreateTestContext(config) ctx.Register() _, errs := ctx.ParseFileList(".", []string{tc.modulePath + "Android.bp"}) -- cgit v1.2.3-59-g8ed1b