From: Adrian Cochrane Date: Tue, 16 Feb 2016 23:43:51 +0000 (+1300) Subject: tests: Replace realpath with the more available 'readlink -f' X-Git-Tag: tevent-0.9.28~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=afc81e08a2b6e8b68022854aaa7c8c2a44109894;p=thirdparty%2Fsamba.git tests: Replace realpath with the more available 'readlink -f' The deprecation of the Debian realpath caused issues on one of the machines we attempted to build on. Signed-off-by: Adrian Cochrane Reviewed-by: Garming Sam Reviewed-by: Uri Simchoni Autobuild-User(master): Garming Sam Autobuild-Date(master): Fri Feb 19 04:43:50 CET 2016 on sn-devel-144 --- diff --git a/source3/script/tests/test_dfree_quota.sh b/source3/script/tests/test_dfree_quota.sh index 6240b563926..25792553fa3 100755 --- a/source3/script/tests/test_dfree_quota.sh +++ b/source3/script/tests/test_dfree_quota.sh @@ -72,7 +72,7 @@ ABC setup_1_conf() { conf_name="$1" subdir="$2" - absdir=`realpath $WORKDIR/$subdir` + absdir=`readlink -f $WORKDIR/$subdir` conf_lines | sed -rn "s/^$conf_name:(.*)/\1/p" | tr ":" "\n" | \ awk -F '=' -v atdir=$absdir 'NF==1 {section=$1} NF==2 {sub(/\s*$/, "", $1); printf "\tfake_dfq:%s/%s/%s =%s\n", section, $1, atdir, $2}' }