summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2023-04-27 09:04:00 +0200
committerMike Yuan <me@yhndnzj.com>2023-04-27 22:42:51 +0800
commitfd34e27fb9903c2e6de85d4cd5e0ca88ffc8f72f (patch)
tree15fb34ea99212865541f6997adf534a06178722f
parent82060b62c98f262558d9b5d0b98f0c96cd675b6a (diff)
downloadsystemd-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-xtest/units/testsuite-73.sh4
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