1
0
mirror of https://github.com/rancher/os.git synced 2025-09-17 23:48:09 +00:00

Refactor integration tests

This commit is contained in:
Josh Curl
2016-07-20 10:42:16 -07:00
parent 128c228ff5
commit 0c7fb4f1f9
75 changed files with 545 additions and 938 deletions

View File

@@ -1,13 +1,13 @@
#!/bin/bash
# help: Run Python based integration tests
# help: Run integration tests
set -e
source $(dirname $0)/version
cd $(dirname $0)/../tests/integration
cd $(dirname $0)/../tests
if [ ! -e ../../dist/artifacts/initrd ]; then
../../scripts/dev
if [ ! -e ../dist/artifacts/initrd ]; then
../scripts/dev
fi
tox "$@"
go test -timeout 20m

View File

@@ -6,7 +6,7 @@ cd $(dirname $0)/..
echo Running tests
PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin)' | sed -e 's!^!./!' -e 's!$!/...!')"
PACKAGES=". $(find -name '*.go' | xargs -I{} dirname {} | cut -f2 -d/ | sort -u | grep -Ev '(^\.$|.git|.trash-cache|vendor|bin|tests)' | sed -e 's!^!./!' -e 's!$!/...!')"
if [ "$ARCH" = "amd64" ]; then
RACE="-race"