mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
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.
This commit is contained in:
parent
82060b62c9
commit
fd34e27fb9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user