From d0bcd9b32284dbfeec9d76f4adf046fd68528398 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto Date: Wed, 17 Aug 2011 00:19:05 +0200 Subject: tests: add ts_fdisk_clean function to make fdisk output comparable Signed-off-by: Francesco Cosoleto --- tests/functions.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'tests/functions.sh') diff --git a/tests/functions.sh b/tests/functions.sh index 70bd45a23..acfbbeefe 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -393,3 +393,10 @@ s/# //; /^$/d" /etc/fstab } +function ts_fdisk_clean { + # remove non comparable parts of fdisk output + [ x"${DEVNAME}" != x"" ] && sed -i -e "s/\/dev\/${DEVNAME}/\/dev\/.../g" $TS_OUTPUT + sed -i -e 's/Disk identifier:.*//g' \ + -e 's/Building a new.*//g' \ + $TS_OUTPUT +} -- cgit v1.2.3-55-g7522