]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Tests: There's no bash at /bin/bash on FreeBSD
authorTerry Burton <tez@terryburton.co.uk>
Sat, 16 Jan 2021 21:52:28 +0000 (21:52 +0000)
committerAlan DeKok <aland@freeradius.org>
Sun, 17 Jan 2021 13:25:17 +0000 (08:25 -0500)
src/tests/modules/exec/async.unlang
src/tests/modules/exec/backticks_list.unlang
src/tests/modules/exec/sync.unlang

index efa8eb3ad98a1f6b0ba21df3e2b236d46be16aef..fe0959c3cdda16556695d2c431e432708af75f26 100644 (file)
@@ -3,7 +3,7 @@
 #  because we don't wait for the response.
 #
 update request {
-       &Tmp-String-0 := "%{exec_async:/bin/bash -c 'echo hello'}"
+       &Tmp-String-0 := "%{exec_async:/bin/sh -c 'echo hello'}"
 }
 if (&Tmp-String-0 != '') {
        test_fail
@@ -15,7 +15,7 @@ if (&Tmp-String-0 != '') {
 #  Async calls should not have their output added to the request
 #
 update request {
-       &Tmp-String-0 := "%{exec_async:/bin/bash -c \"echo 'reply.Reply-Message = \'hello\''\"}"
+       &Tmp-String-0 := "%{exec_async:/bin/sh -c \"echo 'reply.Reply-Message = \'hello\''\"}"
 }
 
 if (&reply.Reply-Message == 'hello') {
index 3ab1bf878a2fce8e2587fdbe775f0369ca2fa27f..15e5b91a66f318254856801960624b9b5715d84f 100644 (file)
@@ -3,7 +3,7 @@
 #  because we don't wait for the response.
 #
 update request {
-       &Tmp-String-0 := `/bin/bash -c 'echo hello'`
+       &Tmp-String-0 := `/bin/sh -c 'echo hello'`
 }
 if (&Tmp-String-0 != 'hello') {
        test_fail
@@ -15,7 +15,7 @@ if (&Tmp-String-0 != 'hello') {
 #  Test default list override
 #
 #update request {
-#      control: += `/bin/bash -c "echo reply.Reply-Message = \'hello\'"`
+#      control: += `/bin/sh -c "echo reply.Reply-Message = \'hello\'"`
 #}
 
 #if (&reply.Reply-Message != 'hello') {
index 99ceed1a66618f1e1bca81e2a35ac1f27cf06320..a62a725978cc18b1fd6eafeea08942fb24fd9a38 100644 (file)
@@ -3,7 +3,7 @@
 #  because we don't wait for the response.
 #
 update request {
-       &Tmp-String-0 := "%{exec_sync:/bin/bash -c 'echo hello'}"
+       &Tmp-String-0 := "%{exec_sync:/bin/sh -c 'echo hello'}"
 }
 if (&Tmp-String-0 != 'hello') {
        test_fail
@@ -15,7 +15,7 @@ if (&Tmp-String-0 != 'hello') {
 #  Sync calls should have their output added to the request
 #
 update request {
-       &Tmp-String-0 := "%{exec_sync:/bin/bash -c 'echo \"reply.Reply-Message = \'hello\'\"'}"
+       &Tmp-String-0 := "%{exec_sync:/bin/sh -c 'echo \"reply.Reply-Message = \'hello\'\"'}"
 }
 
 if (&reply.Reply-Message != 'hello') {