зеркало из https://github.com/github/vitess-gh.git
Merge pull request #931 from michael-berlin/travis_enable_debug_logging_worker_py
Makefile: Enable debug logging for worker.py.
This commit is contained in:
Коммит
9b908f8085
12
Makefile
12
Makefile
|
@ -114,6 +114,7 @@ small_integration_test_files = \
|
||||||
initial_sharding.py \
|
initial_sharding.py \
|
||||||
zkocc_test.py
|
zkocc_test.py
|
||||||
|
|
||||||
|
# TODO(mberlin): Remove -v option to worker.py when we found out what causes 10 minute Travis timeouts.
|
||||||
medium_integration_test_files = \
|
medium_integration_test_files = \
|
||||||
tabletmanager.py \
|
tabletmanager.py \
|
||||||
reparent.py \
|
reparent.py \
|
||||||
|
@ -121,7 +122,7 @@ medium_integration_test_files = \
|
||||||
client_test.py \
|
client_test.py \
|
||||||
vtgate_utils_test.py \
|
vtgate_utils_test.py \
|
||||||
rowcache_invalidator.py \
|
rowcache_invalidator.py \
|
||||||
worker.py \
|
"worker.py -v" \
|
||||||
automation_horizontal_resharding.py
|
automation_horizontal_resharding.py
|
||||||
|
|
||||||
large_integration_test_files = \
|
large_integration_test_files = \
|
||||||
|
@ -149,12 +150,19 @@ SHELL = /bin/bash
|
||||||
|
|
||||||
# function to execute a list of integration test files
|
# function to execute a list of integration test files
|
||||||
# exits on first failure
|
# exits on first failure
|
||||||
|
# TODO(mberlin): Remove special handling for worker.py when we found out what causes 10 minute Travis timeouts.
|
||||||
define run_integration_tests
|
define run_integration_tests
|
||||||
cd test ; \
|
cd test ; \
|
||||||
for t in $1 ; do \
|
for t in $1 ; do \
|
||||||
echo $$(date): Running test/$$t... ; \
|
echo $$(date): Running test/$$t... ; \
|
||||||
|
if [[ $$t == *worker.py* ]]; then \
|
||||||
|
time ./$$t $$VT_TEST_FLAGS 2>&1 ; \
|
||||||
|
rc=$$? ; \
|
||||||
|
else \
|
||||||
output=$$(time ./$$t $$VT_TEST_FLAGS 2>&1) ; \
|
output=$$(time ./$$t $$VT_TEST_FLAGS 2>&1) ; \
|
||||||
if [[ $$? != 0 ]]; then \
|
rc=$$? ; \
|
||||||
|
fi ; \
|
||||||
|
if [[ $$rc != 0 ]]; then \
|
||||||
echo "$$output" >&2 ; \
|
echo "$$output" >&2 ; \
|
||||||
exit 1 ; \
|
exit 1 ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче