mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-02-26 09:57:26 +03:00
test/udev-test.pl: merge "space and var with space" tests
As we can check multiple links in a single test now, these 3 tests can be merged into one.
This commit is contained in:
parent
86634df43b
commit
2084fe0d32
@ -1103,34 +1103,9 @@ EOF
|
|||||||
devices => [
|
devices => [
|
||||||
{
|
{
|
||||||
devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
|
devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
|
||||||
exp_links => ["first"],
|
exp_links => ["first", "name-one_two_three-end",
|
||||||
not_exp_links => [" "],
|
"another_symlink", "a", "b", "c"],
|
||||||
}],
|
not_exp_links => [" "],
|
||||||
rules => <<EOF
|
|
||||||
ENV{WITH_WS}=" one two three "
|
|
||||||
SYMLINK=" first name-\$env{WITH_WS}-end another_symlink a b c "
|
|
||||||
EOF
|
|
||||||
},
|
|
||||||
{
|
|
||||||
desc => "symlink with space and var with space, part 2",
|
|
||||||
devices => [
|
|
||||||
{
|
|
||||||
devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
|
|
||||||
exp_links => ["name-one_two_three-end"],
|
|
||||||
not_exp_links => [" "],
|
|
||||||
}],
|
|
||||||
rules => <<EOF
|
|
||||||
ENV{WITH_WS}=" one two three "
|
|
||||||
SYMLINK=" first name-\$env{WITH_WS}-end another_symlink a b c "
|
|
||||||
EOF
|
|
||||||
},
|
|
||||||
{
|
|
||||||
desc => "symlink with space and var with space, part 3",
|
|
||||||
devices => [
|
|
||||||
{
|
|
||||||
devpath => "/devices/pci0000:00/0000:00:1d.7/usb5/5-2/5-2:1.0/tty/ttyACM0",
|
|
||||||
exp_links => ["another_symlink"],
|
|
||||||
not_exp_links => [" "],
|
|
||||||
}],
|
}],
|
||||||
rules => <<EOF
|
rules => <<EOF
|
||||||
ENV{WITH_WS}=" one two three "
|
ENV{WITH_WS}=" one two three "
|
||||||
|
Loading…
x
Reference in New Issue
Block a user