From: Terry Burton Date: Sat, 16 Jan 2021 21:52:28 +0000 (+0000) Subject: Tests: There's no bash at /bin/bash on FreeBSD X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d08bcb80ac03118f8a8724efd7f33a8d30b755b9;p=thirdparty%2Ffreeradius-server.git Tests: There's no bash at /bin/bash on FreeBSD --- diff --git a/src/tests/modules/exec/async.unlang b/src/tests/modules/exec/async.unlang index efa8eb3ad98..fe0959c3cdd 100644 --- a/src/tests/modules/exec/async.unlang +++ b/src/tests/modules/exec/async.unlang @@ -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') { diff --git a/src/tests/modules/exec/backticks_list.unlang b/src/tests/modules/exec/backticks_list.unlang index 3ab1bf878a2..15e5b91a66f 100644 --- a/src/tests/modules/exec/backticks_list.unlang +++ b/src/tests/modules/exec/backticks_list.unlang @@ -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') { diff --git a/src/tests/modules/exec/sync.unlang b/src/tests/modules/exec/sync.unlang index 99ceed1a666..a62a725978c 100644 --- a/src/tests/modules/exec/sync.unlang +++ b/src/tests/modules/exec/sync.unlang @@ -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') {