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:
@@ -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
|
||||
|
@@ -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"
|
||||
|
Reference in New Issue
Block a user