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