Skip to content

Commit

Permalink
pytest: Add some stage info for run.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
  • Loading branch information
sidcha committed Feb 29, 2024
1 parent 0837446 commit e68bc9c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/pytest/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,19 @@
PYTEST_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd ${PYTEST_DIR}

echo "[-] Creating an isolated environment.."
rm -rf __pycache__/
rm -rf .venv ../../python/{build,dist,libosdp.egg-info}
rm -rf .venv ../../python/{build,dist,libosdp.egg-info,vendor}
python3 -m venv .venv
source ./.venv/bin/activate

echo "[-] Installing dependencies.."
pip install pytest

echo "[-] Installing libosdp.."
pushd ../../python
python3 setup.py install
popd

echo "[-] Running tests capturing all output.."
pytest -vv --show-capture=all

0 comments on commit e68bc9c

Please sign in to comment.