]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
don't use `...`, in preparation for moving to %exec()
authorAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 14:50:43 +0000 (10:50 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 4 Oct 2023 14:50:43 +0000 (10:50 -0400)
src/tests/keywords/update-list-error
src/tests/keywords/xlat-exec

index acc67a71f189d11d44ff56dd2ad0e136192131ba..601e28d8fe1dfee5125012a7ba8ec3abd366251c 100644 (file)
@@ -9,10 +9,6 @@ update {
        &reply !* ANY
 }
 
-update {
-       &reply += `/path/to/foo bar baz`
-}
-
 update {
        &request := nope                # ERROR
 }
index e1e95c1c591840053d43b64c56f84417f1b92f5b..e8467fc10f36a396cf658ebba5b3a6b38a996bed 100644 (file)
@@ -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 {