diff options
author | 2023-11-16 12:56:02 -0800 | |
---|---|---|
committer | 2023-11-17 21:28:39 +0000 | |
commit | 7e2e79433367ccdce8d7b14e44f55b3e13fdff9e (patch) | |
tree | 7ea12297efbf629a8231f6cec073ae04517a9255 /rust/test_test.go | |
parent | 9915e03018b8befd78ba315d0a6607cad192b685 (diff) |
Fix soong for go test ./...
Fix various issues that prevent building or running tests with the
Go tools:
Remove testing/test_spec_proto/go.mod. There's already a go.mod at
the top level, and adding testing/test_spec_proto/go.mod breaks
compiling with the Go tools in IntelliJ or from the command line.
Fix go vet issues when trying to print []DataPath.
Fix aconfig_conversion_test.go and add it to Android.bp so it runs
in presubmit.
Test: go test ./...
Change-Id: I18af2f05631446fe507744a2951e4b02c7ab59be
Diffstat (limited to 'rust/test_test.go')
-rw-r--r-- | rust/test_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rust/test_test.go b/rust/test_test.go index 8906f1cb0..6d0ebcf28 100644 --- a/rust/test_test.go +++ b/rust/test_test.go @@ -38,7 +38,7 @@ func TestRustTest(t *testing.T) { dataPaths := testingModule.Module().(*Module).compiler.(*testDecorator).dataPaths() if len(dataPaths) != 1 { - t.Errorf("expected exactly one test data file. test data files: [%s]", dataPaths) + t.Errorf("expected exactly one test data file. test data files: [%v]", dataPaths) return } } @@ -116,7 +116,7 @@ func TestDataLibs(t *testing.T) { t.Fatalf("expected exactly one output file. output files: [%s]", outputFiles) } if len(testBinary.dataPaths()) != 2 { - t.Fatalf("expected exactly two test data files. test data files: [%s]", testBinary.dataPaths()) + t.Fatalf("expected exactly two test data files. test data files: [%v]", testBinary.dataPaths()) } outputPath := outputFiles[0].String() @@ -178,7 +178,7 @@ func TestDataLibsRelativeInstallPath(t *testing.T) { t.Fatalf("expected exactly one output file. output files: [%s]", outputFiles) } if len(testBinary.dataPaths()) != 3 { - t.Fatalf("expected exactly two test data files. test data files: [%s]", testBinary.dataPaths()) + t.Fatalf("expected exactly two test data files. test data files: [%v]", testBinary.dataPaths()) } outputPath := outputFiles[0].String() |