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/blkid | |
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/blkid')
-rwxr-xr-x | tests/ts/blkid/low-probe | 2 | ||||
-rwxr-xr-x | tests/ts/blkid/lowprobe-pt | 2 | ||||
-rwxr-xr-x | tests/ts/blkid/md-raid0-whole | 2 | ||||
-rwxr-xr-x | tests/ts/blkid/md-raid1-part | 2 | ||||
-rwxr-xr-x | tests/ts/blkid/md-raid1-whole | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/tests/ts/blkid/low-probe b/tests/ts/blkid/low-probe index 0ecc664c3..e22d6c849 100755 --- a/tests/ts/blkid/low-probe +++ b/tests/ts/blkid/low-probe @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="low-level superblocks probing" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/blkid/lowprobe-pt b/tests/ts/blkid/lowprobe-pt index b88dd6003..8def673f9 100755 --- a/tests/ts/blkid/lowprobe-pt +++ b/tests/ts/blkid/lowprobe-pt @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="partitions probing" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/blkid/md-raid0-whole b/tests/ts/blkid/md-raid0-whole index bf95f77f5..07ffc584a 100755 --- a/tests/ts/blkid/md-raid0-whole +++ b/tests/ts/blkid/md-raid0-whole @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MD raid0 (whole-disks)" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/blkid/md-raid1-part b/tests/ts/blkid/md-raid1-part index 30900eae6..43140728c 100755 --- a/tests/ts/blkid/md-raid1-part +++ b/tests/ts/blkid/md-raid1-part @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MD raid1 (last partition)" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/blkid/md-raid1-whole b/tests/ts/blkid/md-raid1-whole index fe419017e..8743d3d66 100755 --- a/tests/ts/blkid/md-raid1-whole +++ b/tests/ts/blkid/md-raid1-whole @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MD raid1 (whole-disks)" . $TS_TOPDIR/functions.sh |