Skip to content

Commit

Permalink
Updates run.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiubelu committed Jul 13, 2020
1 parent bee13c6 commit 3a11f8d
Showing 1 changed file with 16 additions and 22 deletions.
38 changes: 16 additions & 22 deletions run_e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function get_tests_regex() {
fi

# Convert non-alphabetic characters to dot
line=`echo $line | sed "s/\W/./g"`
line=`echo "$line" | sed "s/\W/./g"`

if [ "$TEXT" = "" ]
then
Expand All @@ -48,35 +48,29 @@ function get_tests_regex() {

export GINKGO_NO_COLOR=y
export GINKGO_PARALLEL_NODES=12
export GINKGO_PARALLEL=n
export GINKGO_DRYRUN=${DRY_RUN:-false}
export DOCKER_CONFIG_FILE="/home/ubuntu/.docker/config.json"
export KUBECTL=`which kubectl`
export KUBERNETES_CONFORMANCE_TEST=yes
export NUM_NODES=2
export NODE_OS_DISTRO="windows"

FOCUS="`get_tests_regex $FOCUS`"
if [[ -n "$FOCUS" ]]
then
export CONFORMANCE_TEST_FOCUS_REGEX="`get_tests_regex $FOCUS`"
fi
if [[ -n "$SKIP" ]]
then
SKIP="`get_tests_regex $SKIP`"
export CONFORMANCE_TEST_SKIP_REGEX="`get_tests_regex $SKIP`"
fi

BASE_DIR=$(dirname "${BASH_SOURCE}")
KUBE_DIR=$BASE_DIR/kubernetes
E2E_RUN=hack/e2e.go
E2E_RUN=hack/ginkgo-e2e.sh
RESULTS_DIR=$BASE_DIR/results
mkdir -p $RESULTS_DIR

ginkgo_args="--num-nodes=2 --ginkgo.dryRun=${DRY_RUN:-false} "

if [[ -n "$FOCUS" ]]
then
ginkgo_args+="--ginkgo.focus=${FOCUS} "
fi
if [[ -n "$SKIP" ]]
then
ginkgo_args+="--ginkgo.skip=${SKIP} "
fi

e2e_args=("--")
e2e_args+=("--provider=local")
e2e_args+=("-v")
e2e_args+=("--test")
e2e_args+=(--test_args="$ginkgo_args")

cd $KUBE_DIR
go run $E2E_RUN "${e2e_args[@]}" | tee ../$RESULTS_DIR/acs_run_$(date +%Y_%m_%d_%H_%M)

${E2E_RUN} | tee ../$RESULTS_DIR/acs_run_$(date +%Y_%m_%d_%H_%M)

0 comments on commit 3a11f8d

Please sign in to comment.