summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2022-01-28 13:37:12 +0100
committerGitHub <noreply@github.com>2022-01-28 13:37:12 +0100
commit6c66575f0b96f7afa44c9d30ca3bab50bc55c44d (patch)
tree70450aa6ff44c0f02d8b0d1b7609c0574378b115 /test
parentsd-dhcp-server: refuse too large packet to send (diff)
parentRevert "test: wait for user inactive" (diff)
downloadsystemd-6c66575f0b96f7afa44c9d30ca3bab50bc55c44d.tar.xz
systemd-6c66575f0b96f7afa44c9d30ca3bab50bc55c44d.zip
Merge pull request #22282 from yuwata/test-revert-workaronds
test: revert workaronds
Diffstat (limited to 'test')
-rwxr-xr-xtest/units/testsuite-46.sh7
-rwxr-xr-xtest/units/testsuite-64.sh12
2 files changed, 0 insertions, 19 deletions
diff --git a/test/units/testsuite-46.sh b/test/units/testsuite-46.sh
index c3e57cec95..d0bedc63d5 100755
--- a/test/units/testsuite-46.sh
+++ b/test/units/testsuite-46.sh
@@ -153,20 +153,13 @@ if ! systemd-detect-virt -cq ; then
inspect test-user2
fi
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- test ! -f /home/test-user/xyz
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz \
&& { echo 'unexpected success'; exit 1; }
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- touch /home/test-user/xyz
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- rm /home/test-user/xyz
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- test ! -f /home/test-user/xyz
-wait_for_state test-user inactive
PASSWORD=xEhErW0ndafV4s homectl with test-user -- test -f /home/test-user/xyz \
&& { echo 'unexpected success'; exit 1; }
diff --git a/test/units/testsuite-64.sh b/test/units/testsuite-64.sh
index 9ee3699ea8..f75382d90a 100755
--- a/test/units/testsuite-64.sh
+++ b/test/units/testsuite-64.sh
@@ -390,10 +390,6 @@ testcase_btrfs_basic() {
uuid="deadbeef-dead-dead-beef-000000000000"
label="btrfs_root"
mkfs.btrfs -L "$label" -U "$uuid" "${devices[0]}"
- # We need to do some active waiting anyway, as it may take kernel a bit
- # to trigger the newly created btrfs
- helper_wait_for_dev "/dev/disk/by-uuid/$uuid"
- helper_wait_for_dev "/dev/disk/by-label/$label"
udevadm settle
btrfs filesystem show
test -e "/dev/disk/by-uuid/$uuid"
@@ -413,8 +409,6 @@ name="diskpart4", size=85M
EOF
udevadm settle
mkfs.btrfs -d single -m raid1 -L "$label" -U "$uuid" /dev/disk/by-partlabel/diskpart{1..4}
- helper_wait_for_dev "/dev/disk/by-uuid/$uuid"
- helper_wait_for_dev "/dev/disk/by-label/$label"
udevadm settle
btrfs filesystem show
test -e "/dev/disk/by-uuid/$uuid"
@@ -426,8 +420,6 @@ EOF
uuid="deadbeef-dead-dead-beef-000000000002"
label="btrfs_mdisk"
mkfs.btrfs -M -d raid10 -m raid10 -L "$label" -U "$uuid" "${devices[@]}"
- helper_wait_for_dev "/dev/disk/by-uuid/$uuid"
- helper_wait_for_dev "/dev/disk/by-label/$label"
udevadm settle
btrfs filesystem show
test -e "/dev/disk/by-uuid/$uuid"
@@ -465,8 +457,6 @@ EOF
ls -l /dev/mapper/encbtrfs{0..3}
# Create a multi-device btrfs filesystem on the LUKS devices
mkfs.btrfs -M -d raid1 -m raid1 -L "$label" -U "$uuid" /dev/mapper/encbtrfs{0..3}
- helper_wait_for_dev "/dev/disk/by-uuid/$uuid"
- helper_wait_for_dev "/dev/disk/by-label/$label"
udevadm settle
btrfs filesystem show
test -e "/dev/disk/by-uuid/$uuid"
@@ -493,8 +483,6 @@ EOF
# Start the corresponding mount unit and check if the btrfs device was reconstructed
# correctly
systemctl start "${mpoint##*/}.mount"
- helper_wait_for_dev "/dev/disk/by-uuid/$uuid"
- helper_wait_for_dev "/dev/disk/by-label/$label"
btrfs filesystem show
test -e "/dev/disk/by-uuid/$uuid"
test -e "/dev/disk/by-label/$label"