673c78
From 54c1c6895ec53929d44153073a862521f6ed869d Mon Sep 17 00:00:00 2001
673c78
From: Karel Zak <kzak@redhat.com>
673c78
Date: Tue, 24 Aug 2021 10:49:32 +0200
673c78
Subject: tests: make eject umount tests more robust
673c78
673c78
Upstream: http://github.com/karelzak/util-linux/commit/abe16d0d34413555fbd621f90a0b93c2105116a2
673c78
Signed-off-by: Karel Zak <kzak@redhat.com>
673c78
---
673c78
 tests/ts/eject/umount | 3 +++
673c78
 1 file changed, 3 insertions(+)
673c78
673c78
diff --git a/tests/ts/eject/umount b/tests/ts/eject/umount
673c78
index 2be281ee3..04f53ed99 100755
673c78
--- a/tests/ts/eject/umount
673c78
+++ b/tests/ts/eject/umount
673c78
@@ -83,6 +83,7 @@ mkfs.ext2 -q -F $TS_DEVICE
673c78
 udevadm settle
673c78
 mkdir -p $TS_MOUNTPOINT
673c78
 $TS_CMD_MOUNT $TS_DEVICE $TS_MOUNTPOINT
673c78
+udevadm settle
673c78
 $TS_CMD_EJECT --force $TS_DEVICE && ts_log "Success"
673c78
 deinit_device
673c78
 ts_finalize_subtest
673c78
@@ -95,6 +96,7 @@ mkdir -p ${TS_MOUNTPOINT}1
673c78
 mkdir -p ${TS_MOUNTPOINT}2
673c78
 $TS_CMD_MOUNT ${TS_DEVICE}1 ${TS_MOUNTPOINT}1
673c78
 $TS_CMD_MOUNT ${TS_DEVICE}2 ${TS_MOUNTPOINT}2
673c78
+udevadm settle
673c78
 $TS_CMD_EJECT --force $TS_DEVICE && ts_log "Success"
673c78
 deinit_device
673c78
 ts_finalize_subtest
673c78
@@ -115,6 +117,7 @@ mkdir -p ${TS_MOUNTPOINT}1
673c78
 mkdir -p ${TS_MOUNTPOINT}2
673c78
 $TS_CMD_MOUNT ${TS_DEVICE}1 ${TS_MOUNTPOINT}1
673c78
 $TS_CMD_MOUNT ${TS_DEVICE}2 ${TS_MOUNTPOINT}2
673c78
+udevadm settle
673c78
 $TS_CMD_EJECT --force ${TS_DEVICE}1 && ts_log "Success"
673c78
 deinit_device
673c78
 ts_finalize_subtest
673c78
-- 
673c78
2.34.1
673c78