From 3beeb1ebb47fa1f6c0626458043d2ae87283b062 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Wed, 5 Feb 2020 16:27:47 -0800 Subject: [PATCH] Add test for capitalized Soong config variable Soong config variables come from Make where they might be capitalized, but Blueprint didn't handle capitalized variables well. Add test coverage for capitalized Soong config variables. Bug: 148865218 Test: soong_config_module_test.go Change-Id: I1e434e392d5ee660a221a0d3f959811c35e65865 --- android/soong_config_modules_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/soong_config_modules_test.go b/android/soong_config_modules_test.go index 66feba801..6ad88a2ee 100644 --- a/android/soong_config_modules_test.go +++ b/android/soong_config_modules_test.go @@ -43,7 +43,7 @@ func TestSoongConfigModule(t *testing.T) { name: "acme_test_defaults", module_type: "test_defaults", config_namespace: "acme", - variables: ["board", "feature1", "feature2", "feature3"], + variables: ["board", "feature1", "feature2", "FEATURE3"], properties: ["cflags", "srcs"], } @@ -61,7 +61,7 @@ func TestSoongConfigModule(t *testing.T) { } soong_config_bool_variable { - name: "feature3", + name: "FEATURE3", } ` @@ -91,7 +91,7 @@ func TestSoongConfigModule(t *testing.T) { feature2: { cflags: ["-DFEATURE2"], }, - feature3: { + FEATURE3: { cflags: ["-DFEATURE3"], }, },