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/fdisk | |
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/fdisk')
-rwxr-xr-x | tests/ts/fdisk/align-512-4K | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/align-512-4K-63 | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/align-512-4K-md | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/align-512-512 | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/align-512-512-topology | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/bsd | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/gpt | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/id | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/mbr-dos-mode | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/mbr-nondos-mode | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/oddinput | 2 | ||||
-rwxr-xr-x | tests/ts/fdisk/sunlabel | 2 |
12 files changed, 12 insertions, 12 deletions
diff --git a/tests/ts/fdisk/align-512-4K b/tests/ts/fdisk/align-512-4K index c5ea72e7a..2b247f802 100755 --- a/tests/ts/fdisk/align-512-4K +++ b/tests/ts/fdisk/align-512-4K @@ -20,7 +20,7 @@ # I/O size (32KiB) # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="align 512/4K" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/align-512-4K-63 b/tests/ts/fdisk/align-512-4K-63 index 4ec81982f..6190ae152 100755 --- a/tests/ts/fdisk/align-512-4K-63 +++ b/tests/ts/fdisk/align-512-4K-63 @@ -20,7 +20,7 @@ # I/O size (32KiB) # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="align 512/4K +alignment_offset" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/align-512-4K-md b/tests/ts/fdisk/align-512-4K-md index ad5568a04..be078357f 100755 --- a/tests/ts/fdisk/align-512-4K-md +++ b/tests/ts/fdisk/align-512-4K-md @@ -20,7 +20,7 @@ # I/O size (32KiB) # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="align 512/4K +MD" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/align-512-512 b/tests/ts/fdisk/align-512-512 index 03133a6d1..afcb612ef 100755 --- a/tests/ts/fdisk/align-512-512 +++ b/tests/ts/fdisk/align-512-512 @@ -19,7 +19,7 @@ # topology. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="align 512/512" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/align-512-512-topology b/tests/ts/fdisk/align-512-512-topology index 9354e45c7..8cc300929 100755 --- a/tests/ts/fdisk/align-512-512-topology +++ b/tests/ts/fdisk/align-512-512-topology @@ -20,7 +20,7 @@ # I/O size (32KiB) # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="align 512/512 +topology" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/bsd b/tests/ts/fdisk/bsd index 288388d8e..23ac0537e 100755 --- a/tests/ts/fdisk/bsd +++ b/tests/ts/fdisk/bsd @@ -16,7 +16,7 @@ # # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="nested BSD" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/gpt b/tests/ts/fdisk/gpt index 25079070e..75bd006e7 100755 --- a/tests/ts/fdisk/gpt +++ b/tests/ts/fdisk/gpt @@ -16,7 +16,7 @@ # # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="GPT" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/id b/tests/ts/fdisk/id index 2c76f428f..866cf6ecf 100755 --- a/tests/ts/fdisk/id +++ b/tests/ts/fdisk/id @@ -14,7 +14,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MBR - id" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/mbr-dos-mode b/tests/ts/fdisk/mbr-dos-mode index b16e95c13..45b315b64 100755 --- a/tests/ts/fdisk/mbr-dos-mode +++ b/tests/ts/fdisk/mbr-dos-mode @@ -16,7 +16,7 @@ # # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MBR - dos mode" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/mbr-nondos-mode b/tests/ts/fdisk/mbr-nondos-mode index 88a80e636..878c1190b 100755 --- a/tests/ts/fdisk/mbr-nondos-mode +++ b/tests/ts/fdisk/mbr-nondos-mode @@ -14,7 +14,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="MBR - non-dos mode" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/oddinput b/tests/ts/fdisk/oddinput index 5b9bb3108..2120ce7c8 100755 --- a/tests/ts/fdisk/oddinput +++ b/tests/ts/fdisk/oddinput @@ -14,7 +14,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="invalid input tests" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/fdisk/sunlabel b/tests/ts/fdisk/sunlabel index f610ad8f5..b31ec4f5a 100755 --- a/tests/ts/fdisk/sunlabel +++ b/tests/ts/fdisk/sunlabel @@ -14,7 +14,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="sunlabel tests" . $TS_TOPDIR/functions.sh |