diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-09 18:59:14 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-09 19:06:14 +0100 |
commit | 9cd4b7fc69881ef38b9143d0192b97ca08224788 (patch) | |
tree | 5b84a2165ebe2491292049a36784987aebe8b856 /tests | |
parent | 78eba7665565690faccef21f721e94143b5abf7f (diff) | |
download | alpine-conf-9cd4b7fc69881ef38b9143d0192b97ca08224788.zip |
setup-disk: fix typo in error message
and add test from missing block device
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/setup_disk_test | 11 |
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 +} + |