diff options
author | Franck Bui <fbui@suse.com> | 2023-04-27 09:04:00 +0200 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2023-04-27 22:42:51 +0800 |
commit | fd34e27fb9903c2e6de85d4cd5e0ca88ffc8f72f (patch) | |
tree | 15fb34ea99212865541f6997adf534a06178722f | |
parent | 82060b62c98f262558d9b5d0b98f0c96cd675b6a (diff) | |
download | systemd-fd34e27fb9903c2e6de85d4cd5e0ca88ffc8f72f.tar.gz |
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.
-rwxr-xr-x | test/units/testsuite-73.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/units/testsuite-73.sh b/test/units/testsuite-73.sh index d13ebaadbd..8f33baf879 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 |