Hardcode configfile in testcases to be $module_name.config

This seems to be the expected naming convention for all tests.

Test: Set PRODUCT_SOONG_ONLY locally
Test: rm -rf $PRODUCT_OUT/testscases && atest vts_treble_vintf_framework_tes
Bug: 391924360
Change-Id: I8ce30f50fbccf4a3e289ad77e228278223c3a08b
diff --git a/cc/test.go b/cc/test.go
index 9a339de..ec20cb0 100644
--- a/cc/test.go
+++ b/cc/test.go
@@ -406,7 +406,7 @@
 		}
 		testCases := android.PathForModuleInPartitionInstall(ctx, "testcases", ctx.ModuleName()+c.SubName())
 		if test.testConfig != nil {
-			ctx.InstallFile(testCases, test.testConfig.Base(), test.testConfig)
+			ctx.InstallFile(testCases, ctx.ModuleName()+".config", test.testConfig)
 		}
 		for _, extraTestConfig := range test.extraTestConfigs {
 			ctx.InstallFile(testCases, extraTestConfig.Base(), extraTestConfig)