From b4d27255f24cddbdf3480ca0988dada340abe2d3 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 10 Nov 2014 11:46:46 +0100 Subject: tests: simplify and update swaplabel test Signed-off-by: Karel Zak --- tests/ts/misc/swaplabel | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/ts/misc') diff --git a/tests/ts/misc/swaplabel b/tests/ts/misc/swaplabel index 052ee18fb..45f3bb9e2 100755 --- a/tests/ts/misc/swaplabel +++ b/tests/ts/misc/swaplabel @@ -41,18 +41,14 @@ fallocate_or_skip $(( $MIN_SWAP_SIZE - 1 )) $IMAGE $TS_CMD_MKSWAP \ --label 1234567890abcdef \ --uuid 12345678-abcd-abcd-abcd-1234567890ab \ - $IMAGE 2>&1 |\ - sed "s/ $MIN_SWAP_SIZE_KB KiB/ 10 pages/" \ - >> $TS_OUTPUT 2>&1 + $IMAGE >> $TS_OUTPUT 2>&1 rm -f $IMAGE fallocate_or_skip $MIN_SWAP_SIZE $IMAGE $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/" \ - >> $TS_OUTPUT 2>&1 + $IMAGE >> $TS_OUTPUT 2>&1 $TS_CMD_SWAPLABEL $IMAGE >> $TS_OUTPUT 2>&1 #rm -f $IMAGE -- cgit v1.2.3-55-g7522