From c573ebb6dd9df55e56d9279bbfddea67f9cd701f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomi=20Lepp=C3=A4nen?= Date: Fri, 21 Aug 2020 15:52:26 +0300 Subject: Make run-test.sh busybox compatible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Busybox doesn't support readlink -e, readlink -f is almost equivalent. Signed-off-by: Tomi Leppänen --- tests/twisted/run-test.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/twisted/run-test.sh.in b/tests/twisted/run-test.sh.in index 56ade7b3..c45fb5c9 100644 --- a/tests/twisted/run-test.sh.in +++ b/tests/twisted/run-test.sh.in @@ -17,8 +17,8 @@ MC_TEST_CURDIR="`pwd`" export MC_TEST_CURDIR if test "x$MC_TEST_UNINSTALLED" = x; then - script_fullname=`readlink -e "@mctestsdir@/twisted/run-test.sh"` - if [ `readlink -e "$0"` != "$script_fullname" ] ; then + script_fullname=`readlink -f "@mctestsdir@/twisted/run-test.sh"` + if [ `readlink -f "$0"` != "$script_fullname" ] ; then echo "This script is meant to be installed at $script_fullname" >&2 exit 1 fi -- cgit v1.2.1