[LTP] [PATCH 2/2] mkswap01: wait for the triggered events to complete
Petr Vorel
pvorel@suse.cz
Wed Apr 20 22:56:20 CEST 2022
Hi all,
> Signed-off-by: Li Wang <liwang@redhat.com>
> ---
> testcases/commands/mkswap/mkswap01.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> diff --git a/testcases/commands/mkswap/mkswap01.sh b/testcases/commands/mkswap/mkswap01.sh
> index f6494f6e3..cb3563b49 100755
> --- a/testcases/commands/mkswap/mkswap01.sh
> +++ b/testcases/commands/mkswap/mkswap01.sh
> @@ -128,7 +128,7 @@ mkswap_test()
> return
> fi
> - udevadm trigger --name-match=$TST_DEVICE
> + udevadm trigger --name-match=$TST_DEVICE --settle
> if [ -n "$device" ]; then
> mkswap_verify "$mkswap_op" "$op_arg" "$device" "$size" "$dev_file"
--settle option for udevadm trigger has been added in v238 (in 2018) [1].
This mean on SLES 12-SP5, RHEL-7.9, 18.04 LTS bionic, ... we get:
trigger: unrecognized option '--settle'
Do we ignore backward compatibility hoping that all distros aren't tested with
newer LTP?
Kind regards,
Petr
[1] https://github.com/systemd/systemd/commit/792cc203a67edb201073351f5c766fce3d5eab45
More information about the ltp
mailing list