Skip to content

Commit

Permalink
Add create test for missing file.
Browse files Browse the repository at this point in the history
  • Loading branch information
cgull authored and bapt committed Nov 25, 2021
1 parent d116cd6 commit 54db538
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/frontend/create.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ tests_init \
create_from_plist_mini \
create_from_plist_fflags create_from_plist_bad_fflags \
create_from_plist_with_keyword_arguments \
create_from_plist_missing_file \
create_from_manifest_and_plist \
create_from_manifest \
create_from_manifest_dir \
Expand Down Expand Up @@ -92,6 +93,18 @@ create_from_plist_body() {
bsdtar tvf test-1.pkg
}

create_from_plist_missing_file_body() {
# touch file1
genmanifest
genplist "file1"

atf_check \
-o empty \
-e match:"Unable to access file .*file1:" \
-s exit:1 \
pkg create -o ${TMPDIR} -m . -p test.plist -r .
}

create_from_plist_set_owner_body() {

preparetestcredentials "(plop,,)"
Expand Down

0 comments on commit 54db538

Please sign in to comment.