diff options
author | Ruediger Meier | 2015-01-26 14:19:31 +0100 |
---|---|---|
committer | Ruediger Meier | 2015-01-26 15:18:31 +0100 |
commit | 89342005bc1a451e379e92b2f9ec60390d628f30 (patch) | |
tree | 6159ef28e5ca5d3ee8cccd29b8521a8eeb25955f /tests/ts/misc | |
parent | Revert "tests: simplify and update swaplabel test" (diff) | |
download | kernel-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-x | tests/ts/misc/swaplabel | 3 |
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 |