summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc/swaplabel
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ts/misc/swaplabel')
-rwxr-xr-xtests/ts/misc/swaplabel3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/ts/misc/swaplabel b/tests/ts/misc/swaplabel
index 646304508..f934b2179 100755
--- a/tests/ts/misc/swaplabel
+++ b/tests/ts/misc/swaplabel
@@ -20,6 +20,7 @@ ts_init "$*"
ts_check_test_command "$TS_CMD_MKSWAP"
ts_check_test_command "$TS_CMD_SWAPLABEL"
+ts_check_prog "stdbuf"
# fallocate does not work on most file systems
function fallocate_or_skip()
@@ -49,7 +50,7 @@ $TS_CMD_MKSWAP \
rm -f $IMAGE
fallocate_or_skip $MIN_SWAP_SIZE $IMAGE
-$TS_CMD_MKSWAP \
+stdbuf -oL -eL $TS_CMD_MKSWAP \
--label 1234567890abcdef \
--uuid 12345678-abcd-abcd-abcd-1234567890ab \
$IMAGE 2>&1 |\