summaryrefslogtreecommitdiff
path: root/init.cfg
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-09-02 21:55:18 +0200
committerJim Meyering <meyering@redhat.com>2012-09-05 08:48:29 +0200
commit303d0743570681237d4e688043be45cebd2db519 (patch)
tree36a66ce1459718433a0aeb4e8087930a91d097f7 /init.cfg
parent9e6d411e262b3dd2fd7f1d6709fba9bbaac3c255 (diff)
downloadcoreutils-303d0743570681237d4e688043be45cebd2db519.tar.xz
tests: more resilient about tainted absolute srcdir path
* tests/init.cfg (stty_reversible_init_): Quote '$abs_top_srcdir' properly. (fiemap_capable_): Quote '$abs_srcdir' properly. (require_dirent_d_type_): Likewise.
Diffstat (limited to 'init.cfg')
-rw-r--r--init.cfg6
1 files changed, 3 insertions, 3 deletions
diff --git a/init.cfg b/init.cfg
index 7edfd0f24..13cac7466 100644
--- a/init.cfg
+++ b/init.cfg
@@ -266,7 +266,7 @@ stty_reversible_init_()
{
# Pad start with one space for the first option to match in query function.
stty_reversible_=' '$(perl -lne '/^ *{"(.*?)",.*\bREV\b/ and print $1' \
- $abs_top_srcdir/src/stty.c | tr '\n' ' ')
+ "$abs_top_srcdir"/src/stty.c | tr '\n' ' ')
# Ensure that there are at least 62, i.e., so we're alerted if
# reformatting the source empties the list.
test 62 -le $(echo "$stty_reversible_"|wc -w) \
@@ -398,7 +398,7 @@ fiemap_capable_()
warn_ 'fiemap_capable_: python missing: assuming not fiemap capable'
return 1
fi
- python $abs_srcdir/tests/fiemap-capable "$@"
+ python "$abs_srcdir"/tests/fiemap-capable "$@"
}
# Skip the current test if "." lacks d_type support.
@@ -413,7 +413,7 @@ require_dirent_d_type_()
df -x xfs . > /dev/null 2>&1 \
|| skip_ requires d_type support
- python $abs_srcdir/tests/d_type-check \
+ python "$abs_srcdir"/tests/d_type-check \
|| skip_ requires d_type support
}