summaryrefslogtreecommitdiff
path: root/tests/setup_disk_test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/setup_disk_test')
-rwxr-xr-xtests/setup_disk_test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/setup_disk_test b/tests/setup_disk_test
index 65b7ada..654bfea 100755
--- a/tests/setup_disk_test
+++ b/tests/setup_disk_test
@@ -5,7 +5,8 @@ init_tests \
setup_disk_usage \
setup_disk_mode_none \
setup_disk_none \
- setup_disk_func_find_disks
+ setup_disk_func_find_disks \
+ setup_disk_non_existing_block_dev
setup_disk_usage_body() {
test_usage setup-disk
@@ -72,3 +73,11 @@ setup_disk_func_find_disks_body() {
setup-disk
}
+setup_disk_non_existing_block_dev_body() {
+ init_env
+ atf_check -s not-exit:0 \
+ -e match:"/dev/vda is not a block device suitable for partitioning" \
+ -o match:"swapoff" \
+ setup-disk -m sys /dev/vda
+}
+