diff options
author | Paul Duffin <paulduffin@google.com> | 2021-03-07 19:18:38 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2021-03-23 18:47:15 +0000 |
commit | 2c4ca8d73f91913792bc59958ef951a29b8f24d9 (patch) | |
tree | faf658324d8a63c5d592bd1a9b86f3864a63d59b /rust/compiler_test.go | |
parent | e0998ab5618d48b816424d29d84f3b484afe7b99 (diff) |
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
Diffstat (limited to 'rust/compiler_test.go')
-rw-r--r-- | rust/compiler_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/compiler_test.go b/rust/compiler_test.go index 2b40727e7..3ed086f20 100644 --- a/rust/compiler_test.go +++ b/rust/compiler_test.go @@ -153,7 +153,7 @@ func TestLints(t *testing.T) { for _, tc := range lintTests { 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"}) |