summaryrefslogtreecommitdiffstats
path: root/tests/ts/misc
diff options
context:
space:
mode:
authorRuediger Meier2015-01-26 14:19:31 +0100
committerRuediger Meier2015-01-26 15:18:31 +0100
commit89342005bc1a451e379e92b2f9ec60390d628f30 (patch)
tree6159ef28e5ca5d3ee8cccd29b8521a8eeb25955f /tests/ts/misc
parentRevert "tests: simplify and update swaplabel test" (diff)
downloadkernel-qcow2-util-linux-89342005bc1a451e379e92b2f9ec60390d628f30.tar.gz
kernel-qcow2-util-linux-89342005bc1a451e379e92b2f9ec60390d628f30.tar.xz
kernel-qcow2-util-linux-89342005bc1a451e379e92b2f9ec60390d628f30.zip
tests: fix swaplabel test for 9a83b03c
Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
Diffstat (limited to 'tests/ts/misc')
-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 052ee18fb..9bfc6896b 100755
--- a/tests/ts/misc/swaplabel
+++ b/tests/ts/misc/swaplabel
@@ -51,7 +51,8 @@ $TS_CMD_MKSWAP \
--label 1234567890abcdef \
--uuid 12345678-abcd-abcd-abcd-1234567890ab \
$IMAGE 2>&1 |\
- sed "s/ $(( $MIN_SWAP_SIZE_KB - $PAGE_SIZE_KB )) KiB/ 9 pages/" \
+ sed -e "s/ $(( $MIN_SWAP_SIZE_KB - $PAGE_SIZE_KB )) KiB/ 9 pages/" \
+ -e "s/($(( $MIN_SWAP_SIZE - $PAGE_SIZE )) bytes)/(9xPGSZ bytes)/" \
>> $TS_OUTPUT 2>&1
$TS_CMD_SWAPLABEL $IMAGE >> $TS_OUTPUT 2>&1