Skip to content

Commit

Permalink
test: Don't require bsdtar for the test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Feb 24, 2018
1 parent ed18ac7 commit 22e1e43
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions test/t/lib-mocks.bash
Expand Up @@ -196,9 +196,16 @@ function tar() {
TestSimpleWrap tar "$@"
}

function bsdtar() {
TestSimpleWrap bsdtar "$@"
}
if command -v bsdtar > /dev/null
then
function bsdtar() {
TestSimpleWrap bsdtar "$@"
}
else
function bsdtar() {
TestSimpleWrap tar "$@"
}
fi

function chmod() {
local args=()
Expand Down

0 comments on commit 22e1e43

Please sign in to comment.