File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ if [ -z "$NO_COMMON_TESTS" ]; then
24
24
pytest $PYTEST_CONFIG mars/remote mars/storage mars/lib mars/metrics
25
25
mv .coverage build/.coverage.tileable.file
26
26
27
- pytest $PYTEST_CONFIG --forked --ignore mars/tensor --ignore mars/dataframe \
27
+ pytest $PYTEST_CONFIG --forked -v - -ignore mars/tensor --ignore mars/dataframe \
28
28
--ignore mars/learn --ignore mars/remote mars
29
29
mv .coverage build/.coverage.main.file
30
30
coverage combine build/ && coverage report
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
export UNAME=" $( uname | awk ' {print tolower($0)}' ) "
4
- export PYTEST_CONFIG_WITHOUT_COV=" --log-level=DEBUG --timeout=1500 -W ignore::PendingDeprecationWarning"
4
+ export PYTEST_CONFIG_WITHOUT_COV=" -p no:logging -s --timeout=1500 -W ignore::PendingDeprecationWarning"
5
5
export PYTEST_CONFIG=" $PYTEST_CONFIG_WITHOUT_COV --cov-config=setup.cfg --cov-report= --cov=mars"
6
6
7
7
if [[ " $GITHUB_REF " =~ ^" refs/tags/" ]]; then
Original file line number Diff line number Diff line change @@ -47,9 +47,19 @@ def _terminate(pid: int):
47
47
continue
48
48
49
49
50
+ @pytest .fixture
51
+ def config_log ():
52
+ import logging
53
+ logging .basicConfig (level = logging .WARNING )
54
+ try :
55
+ yield
56
+ finally :
57
+ logging .basicConfig (level = logging .DEBUG )
58
+
59
+
50
60
@flaky (max_runs = 3 )
51
61
@pytest .mark .asyncio
52
- async def test_cluster ():
62
+ async def test_cluster (config_log ):
53
63
port = get_next_port ()
54
64
web_port = get_next_port ()
55
65
supervisor_addr = f"127.0.0.1:{ port } "
You can’t perform that action at this time.
0 commit comments