Skip to content

Commit

Permalink
Incorrect parameterized goal argument interpolation when @define goes…
Browse files Browse the repository at this point in the history
… after #152 : add failing test
  • Loading branch information
xonixx committed Dec 23, 2023
1 parent fafd7e5 commit df3fe40
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/28_revamp_define.tush
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,9 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_2_err_quoting.sh -l
@ Wrong quoting: @args:
@ tests/28_revamp_define_2_err_quoting.sh:30: @depends_on pg "@args" 'value'
? 1

$ cd "$MYDIR"; ./$MAKESURE -f tests/28_revamp_define_3_issue152.sh -l
| Available goals:
| g
| pg@aaa
| pg@bbb
14 changes: 14 additions & 0 deletions tests/28_revamp_define_3_issue152.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

# see https://github.com/xonixx/makesure/issues/152

@define AAA 'aaa'

@goal g
@depends_on pg @args "$AAA"
@depends_on pg @args "$BBB"

# define goes after the reference above
@define BBB 'bbb'

@goal pg @params V
echo "$V"

0 comments on commit df3fe40

Please sign in to comment.