Skip to content

Commit

Permalink
don't use ..., in preparation for moving to %exec()
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Oct 4, 2023
1 parent fd14e86 commit 8ba56a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/tests/keywords/update-list-error
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ update {
&reply !* ANY
}

update {
&reply += `/path/to/foo bar baz`
}

update {
&request := nope # ERROR
}
Expand Down
6 changes: 3 additions & 3 deletions src/tests/keywords/xlat-exec
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
&Tmp-String-0 = "foo"
&Tmp-String-1 := `/bin/echo hello 1234:%{Tmp-String-0} world`
&Tmp-String-1 := %exec('/bin/echo', "hello 1234:%{Tmp-String-0} world")

if (!(&Tmp-String-1 == "hello 1234:foo world")) {
test_fail
}

&Tmp-String-1 := `/bin/echo hello %{Tmp-String-0}:1234 world`
&Tmp-String-1 := %exec('/bin/echo', "hello %{Tmp-String-0}:1234 world")
if (!(&Tmp-String-1 == "hello foo:1234 world")) {
test_fail
}

# User-Password contains characters that need escaping
&Tmp-String-2 := `/bin/echo %{User-Password}`
&Tmp-String-2 := %exec('/bin/echo', "%{User-Password}")
if (!(&Tmp-String-2 == &User-Password)) {
test_fail
} else {
Expand Down

0 comments on commit 8ba56a0

Please sign in to comment.