summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPádraig Brady <P@draigBrady.com>2022-04-10 15:47:52 +0100
committerPádraig Brady <P@draigBrady.com>2022-04-10 15:48:29 +0100
commit046ab76166bfe946fa701e1a93ac69e1c69d5a13 (patch)
tree2db561c2942eb241be35434d1a06e786ab05fd24
parentcc01b8a8f43bd1e02339322595f7a20e72a8c155 (diff)
downloadcoreutils-046ab76166bfe946fa701e1a93ac69e1c69d5a13.tar.gz
tests: stty.sh: skip on systems without perl
* init.cfg (stty_reversible_init_): Add require_perl_ to ensure we skip rather than error, without perl.
-rw-r--r--init.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.cfg b/init.cfg
index 310ff055d..eb57de264 100644
--- a/init.cfg
+++ b/init.cfg
@@ -384,6 +384,7 @@ rwx_to_mode_()
# with a space.
stty_reversible_init_()
{
+ require_perl_
# 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' ' ')