From a35178b10506677ed6c22cfd94df77d44692e423 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 24 Mar 2021 14:54:12 +0000 Subject: [PATCH] Fix "filename too long" issue on Luci caused by test name Stop including fields in the test name for TestJavaSdkLibraryEnforce to reduce its length to avoid the filename too long limit. Test: m nothing Check the lengths before (~240) and after (~74) to make sure there was a sizeable reduction. Change-Id: I275a1110e5102b8ea8376759f28c7c6333a5efee --- java/java_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/java_test.go b/java/java_test.go index 31eeb6b05..1a79f497b 100644 --- a/java/java_test.go +++ b/java/java_test.go @@ -831,7 +831,7 @@ func TestJavaSdkLibraryEnforce(t *testing.T) { } runTest := func(t *testing.T, info testConfigInfo, expectedErrorPattern string) { - t.Run(fmt.Sprintf("%#v", info), func(t *testing.T) { + t.Run(fmt.Sprintf("%v", info), func(t *testing.T) { errorHandler := android.FixtureExpectsNoErrors if expectedErrorPattern != "" { errorHandler = android.FixtureExpectsAtLeastOneErrorMatchingPattern(expectedErrorPattern)