From d2c5376f0535defc1619a499af9e3949f2f01946 Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?=
Date: Sat, 27 Aug 2022 19:17:27 +0100 Subject: [PATCH] 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. --- tests/misc/invalid-opt.pl | 1 + tests/misc/usage_vs_getopt.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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' -- 2.47.2