summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2013-09-18 15:38:33 +0200
committerKarel Zak2013-09-18 15:38:33 +0200
commite1fe1815da9f864286d3154514b5a4437af50902 (patch)
tree6f35ec0e1c90a8dd609fc245dc68e3d2f2b2a9f1 /tests/functions.sh
parentlibfdisk: fix cylinders and sector buffer usage (diff)
downloadkernel-qcow2-util-linux-e1fe1815da9f864286d3154514b5a4437af50902.tar.gz
kernel-qcow2-util-linux-e1fe1815da9f864286d3154514b5a4437af50902.tar.xz
kernel-qcow2-util-linux-e1fe1815da9f864286d3154514b5a4437af50902.zip
tests: refresh fdisk tests
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 7d9688691..384368b13 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -470,16 +470,19 @@ s/# <!-- util-linux.*-->//;
}
function ts_fdisk_clean {
- local DEVNAME=$(basename "$1")
+ local DEVNAME=$1
# remove non comparable parts of fdisk output
if [ x"${DEVNAME}" != x"" ]; then
- sed -i -e "s/\/dev\/${DEVNAME}/\/dev\/.../g" $TS_OUTPUT
+ sed -i -e "s:${DEVNAME}:<removed>:g" $TS_OUTPUT
fi
- sed -i -e 's/Disk identifier:.*//g' \
- -e 's/Building a new.*//g' \
- -e 's/Welcome to fdisk.*//g' \
+ sed -i -e 's/Disk identifier:.*/Disk identifier: <removed>/g' \
+ -e 's/Created a new.*/Created a new <removed>./g' \
+ -e 's/^Device[[:blank:]]*Start/Device Start/g' \
+ -e 's/^Device[[:blank:]]*Boot/Device Boot/g' \
+ -e 's/^Device[[:blank:]]*Flag/Device Flag/g' \
+ -e 's/Welcome to fdisk.*/Welcome to fdisk <removed>./g' \
$TS_OUTPUT
}