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