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/functions.sh | |
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/functions.sh')
-rw-r--r-- | tests/functions.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functions.sh b/tests/functions.sh index f210204e2..c802136e2 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -117,7 +117,7 @@ function ts_init_core_subtest_env { } function ts_init_env { - local mydir=$(ts_abspath $(dirname $0)) + local mydir=$(ts_abspath ${0%/*}) LANG="POSIX" LANGUAGE="POSIX" |