Skip to content

Commit

Permalink
Run test_exec_command in a separate subprocess
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Jun 1, 2020
1 parent a8e9cc6 commit cc6bf63
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-scripts/build-manylinux-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ cp -v "${SRC_DIR}/pytest.ini" "${TESTS_DIR}/"
pushd "${TESTS_DIR}"
for PY_BIN in `ls ${VENVS_DIR}/*/bin/python`; do
cleanup_garbage
#$PY_BIN -B -m pip install --no-compile Cython pytest pytest-cov pytest-xdist ${PIP_GLOBAL_ARGS}
$PY_BIN -B -m pip install --no-compile pytest pytest-cov pytest-xdist ${PIP_GLOBAL_ARGS}
#$PY_BIN -B -m pip install --no-compile Cython pytest pytest-cov pytest-forked pytest-xdist ${PIP_GLOBAL_ARGS}
$PY_BIN -B -m pip install --no-compile pytest pytest-cov pytest-forked pytest-xdist ${PIP_GLOBAL_ARGS}
$PY_BIN -B -m pytest -m smoke "${TESTS_DIR}"
done
popd
Expand Down
1 change: 1 addition & 0 deletions tests/unit/channel_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def ssh_channel(ssh_client_session):
chan.close()


@pytest.mark.forked
def test_exec_command(ssh_channel):
"""Test getting the output of a remotely executed command."""
u_cmd_out = ssh_channel.exec_command('echo -n Hello World').stdout.decode()
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ usedevelop = false
deps =
pytest
pytest-cov
pytest-forked
pytest-xdist
commands =
{envpython} -m pytest {posargs:}
Expand Down

0 comments on commit cc6bf63

Please sign in to comment.