Skip to content

Commit

Permalink
chore: fix test dockerd bin perms
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
(cherry picked from commit fd3eeb1)
  • Loading branch information
crazy-max committed Apr 6, 2022
1 parent e6ff1de commit 2e7a665
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions hack/test
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,18 @@ set -eu -o pipefail
: ${DOCKERFILE_RELEASES=}
: ${BUILDKIT_WORKER_RANDOM=}

if [ "$TEST_DOCKERD" == "1" ] && ! file $TEST_DOCKERD_BINARY | grep "statically linked" >/dev/null; then
echo "dockerd binary needs to be statically linked"
exit 1
if [ "$TEST_DOCKERD" == "1" ]; then
if [ ! -f "$TEST_DOCKERD_BINARY" ]; then
echo "dockerd binary not found"
exit 1
fi
if [ ! -x "$TEST_DOCKERD_BINARY" ]; then
chmod +x "$TEST_DOCKERD_BINARY"
fi
if ! file "$TEST_DOCKERD_BINARY" | grep "statically linked" >/dev/null; then
echo "dockerd binary needs to be statically linked"
exit 1
fi
fi

if [ "$#" == 0 ]; then TEST_INTEGRATION=1; fi
Expand Down

0 comments on commit 2e7a665

Please sign in to comment.