diff options
Diffstat (limited to 'test/test-functions')
-rw-r--r-- | test/test-functions | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test-functions b/test/test-functions index e4ec4f025f..66cd60b559 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*- # ex: ts=8 sw=4 sts=4 et filetype=sh PATH=/sbin:/bin:/usr/sbin:/usr/bin @@ -39,7 +39,7 @@ PATH_TO_INIT=$ROOTLIBDIR/systemd [ "$SYSTEMD_NSPAWN" ] || SYSTEMD_NSPAWN=$(which -a $BUILD_DIR/systemd-nspawn systemd-nspawn 2>/dev/null | grep '^/' -m1) [ "$JOURNALCTL" ] || JOURNALCTL=$(which -a $BUILD_DIR/journalctl journalctl 2>/dev/null | grep '^/' -m1) -BASICTOOLS="test sh bash setsid loadkeys setfont login sulogin gzip sleep echo head tail cat mount umount cryptsetup date dmsetup modprobe sed cmp tee rm true false chmod chown ln xargs" +BASICTOOLS="test env sh bash setsid loadkeys setfont login sulogin gzip sleep echo head tail cat mount umount cryptsetup date dmsetup modprobe sed cmp tee rm true false chmod chown ln xargs" DEBUGTOOLS="df free ls stty ps ln ip route dmesg dhclient mkdir cp ping dhclient strace less grep id tty touch du sort hostname find vi mv" STATEDIR="${BUILD_DIR:-.}/test/$(basename $(dirname $(realpath $0)))" @@ -376,7 +376,7 @@ create_valgrind_wrapper() { local _valgrind_wrapper=$initdir/$ROOTLIBDIR/systemd-under-valgrind ddebug "Create $_valgrind_wrapper" cat >$_valgrind_wrapper <<EOF -#!/bin/bash +#!/usr/bin/env bash mount -t proc proc /proc exec valgrind --leak-check=full --log-file=/valgrind.out $ROOTLIBDIR/systemd "\$@" @@ -405,7 +405,7 @@ create_asan_wrapper() { esac cat >$_asan_wrapper <<EOF -#!/bin/bash +#!/usr/bin/env bash set -x @@ -488,7 +488,7 @@ create_strace_wrapper() { local _strace_wrapper=$initdir/$ROOTLIBDIR/systemd-under-strace ddebug "Create $_strace_wrapper" cat >$_strace_wrapper <<EOF -#!/bin/bash +#!/usr/bin/env bash exec strace -D -o /strace.out $ROOTLIBDIR/systemd "\$@" EOF @@ -675,7 +675,7 @@ strip_binaries() { create_rc_local() { mkdir -p $initdir/etc/rc.d cat >$initdir/etc/rc.d/rc.local <<EOF -#!/bin/bash +#!/usr/bin/env bash exit 0 EOF chmod 0755 $initdir/etc/rc.d/rc.local |