Skip to content

Commit

Permalink
Switch to using new_pkg() from test_subr.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
brd committed Feb 19, 2018
1 parent 7a71f92 commit 5d3bce3
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions tests/frontend/set.sh
Expand Up @@ -9,20 +9,9 @@ tests_init \
set_vital

initialize_pkg() {
cat << EOF > test.ucl
name: test
origin: origin/test
version: 1
maintainer: test
categories: [test]
comment: a test
www: http://test
prefix: /
abi = "*";
desc: <<EOD
Yet another test
EOD
EOF

atf_check -s exit:0 ${RESOURCEDIR}/test_subr.sh new_pkg test test 1
sed -i'' -e 's#origin.*#origin: origin/test#' test.ucl

atf_check \
-o match:".*Installing.*\.\.\.$" \
Expand Down

0 comments on commit 5d3bce3

Please sign in to comment.