tests: Replace realpath with the more available 'readlink -f'
authorAdrian Cochrane <adrianc@catalyst.net.nz>
Tue, 16 Feb 2016 23:43:51 +0000 (12:43 +1300)
committerGarming Sam <garming@samba.org>
Fri, 19 Feb 2016 03:43:50 +0000 (04:43 +0100)
The deprecation of the Debian realpath caused issues on one of the
machines we attempted to build on.

Signed-off-by: Adrian Cochrane <adrianc@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Garming Sam <garming@samba.org>
Autobuild-Date(master): Fri Feb 19 04:43:50 CET 2016 on sn-devel-144

source3/script/tests/test_dfree_quota.sh

index 6240b563926dfc09606b0bcde7d1f448df5d367e..25792553fa3fc2e9472e97123b2a67e74ad63a1d 100755 (executable)
@@ -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}'
 }