From 2f791546395cb43f3f93de6c095c812c7cd5237f Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 16 Feb 2014 15:22:56 +0000 Subject: tests: check commands needed for running a test exist Signed-off-by: Sami Kerola Signed-off-by: Karel Zak --- tests/ts/fdisk/mbr-nondos-mode | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/ts/fdisk/mbr-nondos-mode') diff --git a/tests/ts/fdisk/mbr-nondos-mode b/tests/ts/fdisk/mbr-nondos-mode index 878c1190b..9c38f3aff 100755 --- a/tests/ts/fdisk/mbr-nondos-mode +++ b/tests/ts/fdisk/mbr-nondos-mode @@ -20,6 +20,8 @@ TS_DESC="MBR - non-dos mode" . $TS_TOPDIR/functions.sh ts_init "$*" +ts_check_test_command "$TS_CMD_FDISK" + # cmd to changes system id to 0x1 FDISK_CMD_INIT="x\ni\n0x1\nr\n" FDISK_CMD_WRITE_CLOSE="w\nq\n" @@ -27,7 +29,7 @@ FDISK_CMD_CREATE_DOSLABEL="o\n" #create dos label FDISK_CMD_CREATE_1PRIMARY="n\np\n\n\n+3M\n" # create primary partition of size 3MiB FDISK_CMD_CREATE_2PRIMARY="n\np\n\n\n+2M\n" # create primary partition of size 2MiB FDISK_CMD_SET_ACTIVE="a\n1\n" # set first partition active -FDISK_CMD_CREATE_EXTENDED="n\ne\n\n\n\n" # create extended partition +FDISK_CMD_CREATE_EXTENDED="n\ne\n\n\n\n" # create extended partition FDISK_CMD_CREATE_LOGICAL="n\nl\n\n+2M\n" # create next logical partition of size 10 sectors FDISK_CMD_DELETE_LOGICALS="d\n6\nd\n5\nd\n6\n" # delete middle, head, tail, last partitions FDISK_CMD_DELETE_1PRIMARY="d\n1\n" # delete first primary @@ -40,7 +42,7 @@ function print_layout { echo -ne "-------------------\n\n" >> $TS_OUTPUT } -#set -x +#set -x ts_log "Initialize empty image" TEST_IMAGE_NAME=$(ts_image_init 20) # 20 MiB -- cgit v1.2.3-55-g7522