diff options
author | 2022-03-18 14:05:06 -0700 | |
---|---|---|
committer | 2022-03-18 14:05:06 -0700 | |
commit | f5adedce038c60cd326037337984ed32e6db0527 (patch) | |
tree | 3e1f735c390b562b26d3e20a799f642883b82093 /mk2rbc/mk2rbc_test.go | |
parent | 23162405475f5b5d1facce9f9f7d22ba39066ff0 (diff) |
Replace $(call my-dir) with a string literal
This is so that we can set LOCAL_PATH to the result
of my-dir, as LOCAL_PATH can only be set to a string
literal of the exact value of LOCAL_PATH.
It's probably also the correct choice to start phasing
out LOCAL_PATH.
Bug: 214405650
Test: go test
Change-Id: Ia97d7fedf4ce62643921d90a176e65edd4e2fce6
Diffstat (limited to 'mk2rbc/mk2rbc_test.go')
-rw-r--r-- | mk2rbc/mk2rbc_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mk2rbc/mk2rbc_test.go b/mk2rbc/mk2rbc_test.go index 408466041..df0a0a7c6 100644 --- a/mk2rbc/mk2rbc_test.go +++ b/mk2rbc/mk2rbc_test.go @@ -1453,6 +1453,19 @@ def init(g, handle): _my_local_var_with_dashes = ["foo"] `, }, + { + desc: "Set LOCAL_PATH to my-dir", + mkname: "product.mk", + in: ` +LOCAL_PATH := $(call my-dir) +`, + expected: `load("//build/make/core:product_config.rbc", "rblf") + +def init(g, handle): + cfg = rblf.cfg(handle) + +`, + }, } var known_variables = []struct { |