Merge pull request #5477 from vmarmol/add-testdirs
Add a TESTDIRS variable to the test bundle to control which directories are unit tested Upstream-commit: a96cac4d7d42db757f9387ff1352ebedfc7b557e Component: engine
This commit is contained in:
@ -17,8 +17,13 @@ bundle_test() {
|
||||
{
|
||||
date
|
||||
|
||||
# Run all the tests if no TESTDIRS were specified.
|
||||
if [ -z "$TESTDIRS" ]; then
|
||||
TESTDIRS=$(find_dirs '*_test.go')
|
||||
fi
|
||||
|
||||
TESTS_FAILED=()
|
||||
for test_dir in $(find_dirs '*_test.go'); do
|
||||
for test_dir in $TESTDIRS; do
|
||||
echo
|
||||
|
||||
if ! LDFLAGS="$LDFLAGS $LDFLAGS_STATIC_DOCKER" go_test_dir "$test_dir"; then
|
||||
|
||||
Reference in New Issue
Block a user