Skip to content

Commit

Permalink
Skip some tests in mock build env.
Browse files Browse the repository at this point in the history
  • Loading branch information
busykai committed Feb 15, 2018
1 parent 12503a6 commit 3643876
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/check-negative-no-var.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ setup() {
}

@test "check fails when there's no parent for trust store" {
if [ -z "${USER}" ]; then
skip "mock chroot environment. \$USER is not defined."
fi
run $CLRTRUST check
[ $status -ne 0 ]
[ -n "$output" ]
Expand Down
3 changes: 3 additions & 0 deletions test/check-negative-var-ro.bats
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ setup() {
}

@test "check fails when trust store cannot be written" {
if [ -z "${USER}" ]; then
skip "mock chroot environment. \$USER is not defined."
fi
run $CLRTRUST check
[ $status -ne 0 ]
[ -n "$output" ]
Expand Down

0 comments on commit 3643876

Please sign in to comment.