diff options
Diffstat (limited to 'pw/tests/pw_etcdir.sh')
-rwxr-xr-x | pw/tests/pw_etcdir.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pw/tests/pw_etcdir.sh b/pw/tests/pw_etcdir.sh index edb97fe..b237789 100755 --- a/pw/tests/pw_etcdir.sh +++ b/pw/tests/pw_etcdir.sh @@ -1,18 +1,18 @@ # $FreeBSD$ -# When provide -V dir, dir must exists -atf_test_case etcdir_must_exists -etcdir_must_exists_head() { - atf_set "descr" "When provide -V dir, dir must exists" +# When the '-V directory' option is provided, the directory must exist +atf_test_case etcdir_must_exist +etcdir_must_exist_head() { + atf_set "descr" "When the '-V directory' option is provided, the directory must exist" } -etcdir_must_exists_body() { - local fakedir="/this_directory_does_not_exists" +etcdir_must_exist_body() { + local fakedir="/this_directory_does_not_exist" atf_check -e inline:"pw: no such directory \`$fakedir'\n" \ -s exit:72 -x pw -V ${fakedir} usershow root } atf_init_test_cases() { - atf_add_test_case etcdir_must_exists + atf_add_test_case etcdir_must_exist } |