From bbfd2eceb7f95b209d753eee5cec132e2293d96f Mon Sep 17 00:00:00 2001 From: xonix Date: Tue, 9 Jan 2024 17:24:34 +0200 Subject: [PATCH] Export parameterized goal parameters by default #162 --- tests/27_parameterized_goals.tush | 6 ++++++ tests/27_parameterized_goals_13_priority.sh | 7 +++++++ 2 files changed, 13 insertions(+) create mode 100644 tests/27_parameterized_goals_13_priority.sh diff --git a/tests/27_parameterized_goals.tush b/tests/27_parameterized_goals.tush index dc15699..3a6e6af 100644 --- a/tests/27_parameterized_goals.tush +++ b/tests/27_parameterized_goals.tush @@ -254,3 +254,9 @@ $ ./$MAKESURE -f tests/27_parameterized_goals_12_lib.sh a | goal 'b@hello' ... | in lib W=hello | goal 'a' [empty]. + +$ ./$MAKESURE -f tests/27_parameterized_goals_13_priority.sh a +| goal 'pg@Value' ... +| P=Value +| in child: P=Value +| goal 'a' [empty]. diff --git a/tests/27_parameterized_goals_13_priority.sh b/tests/27_parameterized_goals_13_priority.sh new file mode 100644 index 0000000..43ff99e --- /dev/null +++ b/tests/27_parameterized_goals_13_priority.sh @@ -0,0 +1,7 @@ + +@goal pg @params P + echo "P=$P" + sh -c 'echo in child: P=$P' + +@goal a +@depends_on pg @args 'Value' \ No newline at end of file