diff options
author | Sami Kerola | 2014-02-17 00:54:14 +0100 |
---|---|---|
committer | Karel Zak | 2014-02-17 13:55:41 +0100 |
commit | e130ce53ce87f39f4bee3288d106c681e82dbb86 (patch) | |
tree | cc8c576a2aef0d463bdf1c8d5dd4f65971519cc1 /tests/ts/swapon | |
parent | tests: fix trailing spaces in cal(1) stuff (diff) | |
download | kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.tar.gz kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.tar.xz kernel-qcow2-util-linux-e130ce53ce87f39f4bee3288d106c681e82dbb86.zip |
tests: avoid executing dirname(1) command
Bash parameter expansion does the same thing.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'tests/ts/swapon')
-rwxr-xr-x | tests/ts/swapon/devname | 2 | ||||
-rwxr-xr-x | tests/ts/swapon/fixpgsz | 2 | ||||
-rwxr-xr-x | tests/ts/swapon/fixsig | 2 | ||||
-rwxr-xr-x | tests/ts/swapon/label | 2 | ||||
-rwxr-xr-x | tests/ts/swapon/uuid | 2 |
5 files changed, 5 insertions, 5 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 diff --git a/tests/ts/swapon/fixpgsz b/tests/ts/swapon/fixpgsz index 0a694add3..53f8833f5 100755 --- a/tests/ts/swapon/fixpgsz +++ b/tests/ts/swapon/fixpgsz @@ -1,6 +1,6 @@ #!/bin/bash -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="fix page size" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/swapon/fixsig b/tests/ts/swapon/fixsig index 2005dec4b..d7ba65625 100755 --- a/tests/ts/swapon/fixsig +++ b/tests/ts/swapon/fixsig @@ -1,6 +1,6 @@ #!/bin/bash -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="fix signature" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/swapon/label b/tests/ts/swapon/label index 5df0541c1..5f9599cd2 100755 --- a/tests/ts/swapon/label +++ b/tests/ts/swapon/label @@ -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 label" LABEL="testSwapLabel" diff --git a/tests/ts/swapon/uuid b/tests/ts/swapon/uuid index f40720ce2..858350630 100755 --- a/tests/ts/swapon/uuid +++ b/tests/ts/swapon/uuid @@ -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 uuid" . $TS_TOPDIR/functions.sh |