mirror of https://github.com/docker/docs.git
Naming the binary properly on ARM when running the BATS tests
Signed-off-by: Dave Henderson <Dave.Henderson@ca.ibm.com>
This commit is contained in:
parent
aec395502e
commit
2019448f5f
|
@ -4,13 +4,20 @@
|
|||
MACHINE_ROOT=${BATS_TEST_DIRNAME}/../..
|
||||
|
||||
PLATFORM=`uname -s | tr '[:upper:]' '[:lower:]'`
|
||||
ARCH=`uname -m`
|
||||
|
||||
if [ "$ARCH" = "x86_64" ]; then
|
||||
case "$(uname -m)" in
|
||||
arm*)
|
||||
ARCH="arm"
|
||||
;;
|
||||
x86_64)
|
||||
ARCH="amd64"
|
||||
else
|
||||
;;
|
||||
i*86)
|
||||
ARCH="386"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
ARCH="$(uname -m)"
|
||||
esac
|
||||
|
||||
MACHINE_BIN_NAME=docker-machine_$PLATFORM-$ARCH
|
||||
BATS_LOG=${MACHINE_ROOT}/bats.log
|
||||
|
||||
|
|
Loading…
Reference in New Issue