From: Pádraig Brady
Date: Sat, 27 Aug 2022 18:17:27 +0000 (+0100) Subject: tests: fix tests after recent runcon change X-Git-Tag: v9.2~157 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2c5376f0535defc1619a499af9e3949f2f01946;p=thirdparty%2Fcoreutils.git tests: fix tests after recent runcon change Following commit v9.1-49-gea3ee6df2 * tests/misc/invalid-opt.pl: Map runcon failure status to 125. * tests/misc/usage_vs_getopt.sh: Likewise. --- diff --git a/tests/misc/invalid-opt.pl b/tests/misc/invalid-opt.pl index 76fa04644c..22a0b41211 100755 --- a/tests/misc/invalid-opt.pl +++ b/tests/misc/invalid-opt.pl @@ -34,6 +34,7 @@ my %exit_status = expr => 0, nice => 125, nohup => 125, + runcon => 125, sort => 2, stdbuf => 125, test => 0, diff --git a/tests/misc/usage_vs_getopt.sh b/tests/misc/usage_vs_getopt.sh index a489accb2c..59e9b093e5 100755 --- a/tests/misc/usage_vs_getopt.sh +++ b/tests/misc/usage_vs_getopt.sh @@ -26,7 +26,7 @@ checkprg () { rcexp=1 case "$prg" in dir | ls | printenv | sort | tty | vdir ) rcexp=2 ;; - env | chroot | nice | nohup | stdbuf | timeout ) rcexp=125 ;; + env | chroot | nice | nohup | runcon | stdbuf | timeout ) rcexp=125 ;; esac # Write the pattern for a long, unknown option into a pattern file. o='thisoptiondoesnotexist'