summaryrefslogtreecommitdiffstats
path: root/tests/ts/column
diff options
context:
space:
mode:
authorSami Kerola2014-02-17 00:54:14 +0100
committerKarel Zak2014-02-17 13:55:41 +0100
commite130ce53ce87f39f4bee3288d106c681e82dbb86 (patch)
treecc8c576a2aef0d463bdf1c8d5dd4f65971519cc1 /tests/ts/column
parenttests: fix trailing spaces in cal(1) stuff (diff)
downloadkernel-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/column')
-rwxr-xr-xtests/ts/column/fillrow2
-rwxr-xr-xtests/ts/column/multi-file2
-rwxr-xr-xtests/ts/column/separator_table2
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/ts/column/fillrow b/tests/ts/column/fillrow
index 172e8587f..71c40da37 100755
--- a/tests/ts/column/fillrow
+++ b/tests/ts/column/fillrow
@@ -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="fill row"
. $TS_TOPDIR/functions.sh
diff --git a/tests/ts/column/multi-file b/tests/ts/column/multi-file
index 654a1da7d..6264bb23d 100755
--- a/tests/ts/column/multi-file
+++ b/tests/ts/column/multi-file
@@ -16,7 +16,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="multiple files"
. $TS_TOPDIR/functions.sh
diff --git a/tests/ts/column/separator_table b/tests/ts/column/separator_table
index fe6f83c0a..9d39090bd 100755
--- a/tests/ts/column/separator_table
+++ b/tests/ts/column/separator_table
@@ -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="separator & table"
. $TS_TOPDIR/functions.sh