diff --git a/test/system/001-minimal b/test/system/001-minimal index daa1f73..107fa3f 100755 --- a/test/system/001-minimal +++ b/test/system/001-minimal @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/002-extended b/test/system/002-extended index 03728c8..7a6734f 100755 --- a/test/system/002-extended +++ b/test/system/002-extended @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/003-memlock b/test/system/003-memlock index 0369d1e..e4ab1bf 100755 --- a/test/system/003-memlock +++ b/test/system/003-memlock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/004-priority b/test/system/004-priority index 976747b..bf8a04b 100755 --- a/test/system/004-priority +++ b/test/system/004-priority @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/005-scfilter b/test/system/005-scfilter index 285d14d..778a688 100755 --- a/test/system/005-scfilter +++ b/test/system/005-scfilter @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/006-privdrop b/test/system/006-privdrop index 5756534..6d7b0c9 100755 --- a/test/system/006-privdrop +++ b/test/system/006-privdrop @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/007-cmdmon b/test/system/007-cmdmon index f97954a..f705fb0 100755 --- a/test/system/007-cmdmon +++ b/test/system/007-cmdmon @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/100-clockupdate b/test/system/100-clockupdate index 1d698e1..191e461 100755 --- a/test/system/100-clockupdate +++ b/test/system/100-clockupdate @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/101-rtc b/test/system/101-rtc index 82c8d51..fa9a70d 100755 --- a/test/system/101-rtc +++ b/test/system/101-rtc @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/102-hwtimestamp b/test/system/102-hwtimestamp index a09b1d9..86f2287 100755 --- a/test/system/102-hwtimestamp +++ b/test/system/102-hwtimestamp @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/103-refclock b/test/system/103-refclock index 623b9de..e5b74e0 100755 --- a/test/system/103-refclock +++ b/test/system/103-refclock @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash . ./test.common diff --git a/test/system/104-systemdirs b/test/system/104-systemdirs index a8ee056..15508dc 100755 --- a/test/system/104-systemdirs +++ b/test/system/104-systemdirs @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash TEST_LIBDIR=${CHRONY_LIBDIR:-/var/lib/chrony} TEST_LOGDIR=${CHRONY_LOGDIR:-/var/log/chrony} diff --git a/test/system/run b/test/system/run index b31a36c..5516ed4 100755 --- a/test/system/run +++ b/test/system/run @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash print_help() { echo "$1 [-a] [-d] [TEST]..." diff --git a/test/system/test.common b/test/system/test.common index 9ac05bb..28c4805 100644 --- a/test/system/test.common +++ b/test/system/test.common @@ -38,7 +38,7 @@ test_start() { if [ "$user" != "root" ]; then id -u "$user" > /dev/null 2> /dev/null || test_skip "missing user $user" chown "$user:$(id -g "$user")" "$TEST_DIR" || test_skip "could not chown $TEST_DIR" - su "$user" -s /bin/bash -c "touch $TEST_DIR/test" 2> /dev/null || \ + su "$user" -s /bin/sh -c "touch $TEST_DIR/test" 2> /dev/null || \ test_skip "$user cannot access $TEST_DIR" rm "$TEST_DIR/test" fi