diff options
author | Andreas Schneider <asn@samba.org> | 2022-04-22 15:34:10 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2022-06-08 13:14:47 +0000 |
commit | e4eecb31d61de5ba66216ec9486faca87b82682f (patch) | |
tree | 63cb87bcf119a85b6687028e2c71bbbd06370451 | |
parent | e6225d77a60e3da41d7a456885a2e48a574f907c (diff) | |
download | samba-e4eecb31d61de5ba66216ec9486faca87b82682f.tar.gz |
s3:tests: Reformat test_resolvconf.sh
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
-rwxr-xr-x | source3/script/tests/test_resolvconf.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/script/tests/test_resolvconf.sh b/source3/script/tests/test_resolvconf.sh index ffe4da9d1f4..6cf189c0657 100755 --- a/source3/script/tests/test_resolvconf.sh +++ b/source3/script/tests/test_resolvconf.sh @@ -1,20 +1,20 @@ #!/bin/sh -incdir=`dirname $0`/../../../testprogs/blackbox +incdir=$(dirname $0)/../../../testprogs/blackbox . $incdir/subunit.sh -if [ ! -x $BINDIR/resolvconftest ] ; then - # Some machines don't have /bin/true, simulate it - cat >$BINDIR/resolvconftest <<EOF +if [ ! -x $BINDIR/resolvconftest ]; then + # Some machines don't have /bin/true, simulate it + cat >$BINDIR/resolvconftest <<EOF #!/bin/sh exit 0 EOF - chmod +x $BINDIR/resolvconftest + chmod +x $BINDIR/resolvconftest fi failed=0 testit "resolvconf" $VALGRIND $BINDIR/resolvconftest || - failed=`expr $failed + 1` + failed=$(expr $failed + 1) testok $0 $failed |