cdown / rpms / util-linux

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