mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
common/rc: fix false positives due to leaked mkfs output to stderr
The change fixes false positives reported by a few generic tests under circumstances, when an mkfs utility prints its output to stderr and then it appears in produced *.out files. The change is intended to fix such issues in the tests, which utilize _require_scratch_swapfile(). Signed-off-by: Vladimir Zapolskiy <vladimir@tuxera.com> Reviewed-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: Eryu Guan <guaneryu@gmail.com>
This commit is contained in:
committed by
Eryu Guan
parent
d9f86e7417
commit
1895ea4b42
@@ -2311,7 +2311,7 @@ _require_scratch_swapfile()
|
|||||||
_require_scratch
|
_require_scratch
|
||||||
_require_command "$MKSWAP_PROG" "mkswap"
|
_require_command "$MKSWAP_PROG" "mkswap"
|
||||||
|
|
||||||
_scratch_mkfs >/dev/null
|
_scratch_mkfs >/dev/null 2>&1
|
||||||
|
|
||||||
# With mounting SELinux context(e.g. system_u:object_r:root_t:s0),
|
# With mounting SELinux context(e.g. system_u:object_r:root_t:s0),
|
||||||
# standard mkswap tried to reset the type of default context to
|
# standard mkswap tried to reset the type of default context to
|
||||||
|
|||||||
Reference in New Issue
Block a user