summaryrefslogtreecommitdiffstats
path: root/tests/ts/fdisk/gpt
diff options
context:
space:
mode:
authorSami Kerola2014-02-16 16:22:56 +0100
committerKarel Zak2014-03-07 11:52:57 +0100
commit2f791546395cb43f3f93de6c095c812c7cd5237f (patch)
tree0fe025270e9c5acbb15ef7d433c553a72fdfdf1e /tests/ts/fdisk/gpt
parenttools: make config-gen to require build target argument (diff)
downloadkernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.gz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.tar.xz
kernel-qcow2-util-linux-2f791546395cb43f3f93de6c095c812c7cd5237f.zip
tests: check commands needed for running a test exist
Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/fdisk/gpt')
-rwxr-xr-xtests/ts/fdisk/gpt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ts/fdisk/gpt b/tests/ts/fdisk/gpt
index 75bd006e7..3c174e968 100755
--- a/tests/ts/fdisk/gpt
+++ b/tests/ts/fdisk/gpt
@@ -22,6 +22,8 @@ TS_DESC="GPT"
. $TS_TOPDIR/functions.sh
ts_init "$*"
+ts_check_test_command "$TS_CMD_FDISK"
+
FDISK_CMD_CREATE_GPTLABEL="g\n" # create GPT label
FDISK_CMD_WRITE_CLOSE="w\nq\n" # write to image
@@ -29,7 +31,7 @@ FDISK_CMD_CHANGE_TYPE_BY_NUM="t\n1\n1\n" # set 1st partition to EFI System
# set 5th partition to Linux swap
FDISK_CMD_CHANGE_TYPE_BY_UUID="t\n5\n0657FD6D-A4AB-43C4-84E5-0933C84B4F4F\n"
-FDISK_CMD_DELETE_PART="d\n2\n" # delete 2nd partition
+FDISK_CMD_DELETE_PART="d\n2\n" # delete 2nd partition
FDISK_CMD_CREATE_PART="n\n2\n\n\n" # create 2nd partition
function print_layout {