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/ipcs | |
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/ipcs')
-rwxr-xr-x | tests/ts/ipcs/headers | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/limits | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/limits2 | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-msg | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-sem | 2 | ||||
-rwxr-xr-x | tests/ts/ipcs/mk-rm-shm | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tests/ts/ipcs/headers b/tests/ts/ipcs/headers index 99b82a383..52e108c23 100755 --- a/tests/ts/ipcs/headers +++ b/tests/ts/ipcs/headers @@ -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="headers" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/ipcs/limits b/tests/ts/ipcs/limits index b44adb1c1..9e164e526 100755 --- a/tests/ts/ipcs/limits +++ b/tests/ts/ipcs/limits @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="limits overflow" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/ipcs/limits2 b/tests/ts/ipcs/limits2 index f99a35448..39f26d708 100755 --- a/tests/ts/ipcs/limits2 +++ b/tests/ts/ipcs/limits2 @@ -16,7 +16,7 @@ # GNU General Public License for more details. # -TS_TOPDIR="$(dirname $0)/../.." +TS_TOPDIR="${0%/*}/../.." TS_DESC="basic limits" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/ipcs/mk-rm-msg b/tests/ts/ipcs/mk-rm-msg index 529d86142..5bea09bed 100755 --- a/tests/ts/ipcs/mk-rm-msg +++ b/tests/ts/ipcs/mk-rm-msg @@ -12,7 +12,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="mk-rm-msg" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/ipcs/mk-rm-sem b/tests/ts/ipcs/mk-rm-sem index 2eb149d5f..816d306d4 100755 --- a/tests/ts/ipcs/mk-rm-sem +++ b/tests/ts/ipcs/mk-rm-sem @@ -12,7 +12,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="mk-rm-sem" . $TS_TOPDIR/functions.sh diff --git a/tests/ts/ipcs/mk-rm-shm b/tests/ts/ipcs/mk-rm-shm index f2bc33ec5..8aa604df9 100755 --- a/tests/ts/ipcs/mk-rm-shm +++ b/tests/ts/ipcs/mk-rm-shm @@ -12,7 +12,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="mk-rm-shm" . $TS_TOPDIR/functions.sh |