summaryrefslogtreecommitdiffstats
path: root/tests/functions.sh
diff options
context:
space:
mode:
authorKarel Zak2017-02-15 12:48:06 +0100
committerKarel Zak2017-02-15 12:48:06 +0100
commitf0c60dff1acae21b1729ed4963bd46be3bbaa83e (patch)
tree03a37000343ae4e0f69258e94cee3f0f53abc1b2 /tests/functions.sh
parentlibblkid: (gpt) fix force flag (diff)
downloadkernel-qcow2-util-linux-f0c60dff1acae21b1729ed4963bd46be3bbaa83e.tar.gz
kernel-qcow2-util-linux-f0c60dff1acae21b1729ed4963bd46be3bbaa83e.tar.xz
kernel-qcow2-util-linux-f0c60dff1acae21b1729ed4963bd46be3bbaa83e.zip
tests: add sfdisk --wipe and --wipe-partition tests
Addresses: https://github.com/karelzak/util-linux/issues/410 Addresses: https://github.com/karelzak/util-linux/issues/411 Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/functions.sh')
-rw-r--r--tests/functions.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/functions.sh b/tests/functions.sh
index 9239ab4f6..34d966a6e 100644
--- a/tests/functions.sh
+++ b/tests/functions.sh
@@ -45,6 +45,16 @@ function ts_cd {
fi
}
+function ts_separator {
+ local header="$1"
+ echo >> $TS_OUTPUT
+ if [ -z "$header" ]; then
+ echo "============================================" >> $TS_OUTPUT
+ else
+ echo "=====$header================================" >> $TS_OUTPUT
+ fi
+}
+
function ts_report {
local desc=