File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22set -e
33cd " $( dirname " $0 " ) "
44
5- if [ " $( uname) " == " Darwin" ]; then
5+ if [ " $( uname) " = " Darwin" ]; then
66 export GOOS=" ${GOOS:- linux} "
77fi
88
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22set -e
33cd " $( dirname " $0 " ) "
44
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22set -xe
33
44SRC_DIR=" ${SRC_DIR:- $PWD } "
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22#
33# Run CNI plugin tests.
44#
@@ -10,12 +10,12 @@ set -e
1010cd " $( dirname " $0 " ) "
1111
1212# Build all plugins before testing
13- source ./build_linux.sh
13+ . ./build_linux.sh
1414
1515echo " Running tests"
1616
17- function testrun {
18- sudo -E bash -c " umask 0; PATH=${GOPATH} /bin:$( pwd) /bin:${PATH} go test -race $@ "
17+ testrun () {
18+ sudo -E sh -c " umask 0; PATH=${GOPATH} /bin:$( pwd) /bin:${PATH} go test -race $* "
1919}
2020
2121COVERALLS=${COVERALLS:- " " }
Original file line number Diff line number Diff line change 1- #! /usr/bin/env bash
1+ #! /usr/bin/env sh
22#
33# Run CNI plugin tests.
44#
55set -e
66cd " $( dirname " $0 " ) "
77
8- source ./build_windows.sh
8+ . ./build_windows.sh
99
1010echo " Running tests"
1111
You can’t perform that action at this time.
0 commit comments