Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix pytest after log to stderr #2203

Merged
merged 1 commit into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ core/wasm/**/Cargo.lock
# Python env
.env
*.pyc
venv

# Node
**/node_modules/
Expand Down
2 changes: 1 addition & 1 deletion pytest/lib/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def init_cluster(num_nodes, num_observers, num_shards, config, genesis_config_ch
assert 0 == process.returncode, err

node_dirs = [line.split()[-1]
for line in out.decode('utf8').split('\n') if '/test' in line]
for line in err.decode('utf8').split('\n') if '/test' in line]
assert len(node_dirs) == num_nodes + num_observers, "node dirs: %s num_nodes: %s num_observers: %s" % (len(node_dirs), num_nodes, num_observers)

# apply config changes
Expand Down