summaryrefslogtreecommitdiffstats
path: root/tests/ts/swapon/devname
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/swapon/devname')
-rwxr-xr-xtests/ts/swapon/devname2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ts/swapon/devname b/tests/ts/swapon/devname
index cbab1285d..10fcc4282 100755
--- a/tests/ts/swapon/devname
+++ b/tests/ts/swapon/devname
@@ -15,7 +15,7 @@
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
-TS_TOPDIR="$(dirname $0)/../.."
+TS_TOPDIR="${0%/*}/../.."
TS_DESC="by devname"
. $TS_TOPDIR/functions.sh