Blame 0004-tests-make-eject-umount-tests-more-robust.patch

Karel Zak 42def0
From abe16d0d34413555fbd621f90a0b93c2105116a2 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 42def0
Subject: [PATCH] tests: make eject umount tests more robust
Karel Zak 42def0
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 42def0
index 0a89b022e..a6d1f251d 100755
Karel Zak 42def0
--- a/tests/ts/eject/umount
Karel Zak 42def0
+++ b/tests/ts/eject/umount
Karel Zak 42def0
@@ -84,6 +84,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 42def0
@@ -96,6 +97,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 42def0
@@ -116,6 +118,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 42def0
2.31.1
Karel Zak 42def0