diff options
author | Tomi Leppänen <tomi.leppanen@jolla.com> | 2020-08-21 15:52:26 +0300 |
---|---|---|
committer | Tomi Leppänen <tomi.leppanen@jolla.com> | 2020-08-24 14:47:59 +0300 |
commit | c573ebb6dd9df55e56d9279bbfddea67f9cd701f (patch) | |
tree | 96ab088691a7513686ba3900bfeab4e7c39f3819 | |
parent | 3f0ce4db48ac6389ffacd4ac1a9b24bae989d97c (diff) |
Make run-test.sh busybox compatible
Busybox doesn't support readlink -e, readlink -f is almost equivalent.
Signed-off-by: Tomi Leppänen <tomi.leppanen@jolla.com>
-rw-r--r-- | tests/twisted/run-test.sh.in | 4 |
1 files 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 |