summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc/getopt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/misc/getopt')
-rwxr-xr-xtests/ts/misc/getopt2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/misc/getopt b/tests/ts/misc/getopt
index a6b91cb53..082e41170 100755
--- a/tests/ts/misc/getopt
+++ b/tests/ts/misc/getopt
@@ -15,7 +15,7 @@
# This test script is modified version of 'getopt-parse.bash' example
# file in misc/ directory.
-TS_TOPDIR="$(dirname $0)/../.."
+TS_TOPDIR="${0%/*}/../.."
TS_DESC="getopt"
. $TS_TOPDIR/functions.sh