From: Franck Bui Date: Thu, 27 Apr 2023 07:04:00 +0000 (+0200) Subject: test: dont use anchor char '$' to match a part of a string X-Git-Tag: v254-rc1~608 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd34e27fb9903c2e6de85d4cd5e0ca88ffc8f72f;p=thirdparty%2Fsystemd.git test: dont use anchor char '$' to match a part of a string When anchoring the pattern using '$' regular expression operator it forces '=~' operator to match the entire string. --- diff --git a/test/units/testsuite-73.sh b/test/units/testsuite-73.sh index d13ebaadbdf..8f33baf8794 100755 --- a/test/units/testsuite-73.sh +++ b/test/units/testsuite-73.sh @@ -264,12 +264,12 @@ test_vc_keymap() { assert_in "XKBOPTIONS=terminate:ctrl_alt_bksp" "$vc" elif [[ "$i" == "us-acentos" ]]; then assert_in "X11 Layout: us" "$output" - assert_in 'X11 Model: pc105$' "$output" + assert_in "X11 Model: pc105" "$output" assert_in "X11 Variant: intl" "$output" assert_in "X11 Options: terminate:ctrl_alt_bksp" "$output" assert_in "XKBLAYOUT=us" "$vc" - assert_in "XKBMODEL=pc105$" "$vc" + assert_in "XKBMODEL=pc105" "$vc" assert_in "XKBVARIANT=intl" "$vc" assert_in "XKBOPTIONS=terminate:ctrl_alt_bksp" "$vc" elif [[ "$i" =~ ^us-.* ]]; then