aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-05-17 15:30:56 +0100
committerEric Kunze <eric.kunze@arm.com>2022-07-11 23:16:58 +0000
commit6c6467f3f07687f0eebd049f1fa3ce21c516f184 (patch)
tree457f017175e309a6ee5b39f208aee7ef549001d6 /scripts
parent750d27da447205ce82056d8b6b473e7a6ec051c6 (diff)
downloadreference_model-6c6467f3f07687f0eebd049f1fa3ce21c516f184.tar.gz
Enable pytest pre-commit
Change-Id: Ia00a9fa0d260c68ce8532dec9925467558fe7dea Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/py-dev-env.bash1
-rw-r--r--scripts/py-dev-env.sh1
2 files changed, 2 insertions, 0 deletions
diff --git a/scripts/py-dev-env.bash b/scripts/py-dev-env.bash
index 82c16e3..1de566d 100644
--- a/scripts/py-dev-env.bash
+++ b/scripts/py-dev-env.bash
@@ -17,6 +17,7 @@ if [ -e "${BASH_SOURCE[0]}" ]; then
SCRIPTS_DIR=$(dirname $(readlink -f "${BASH_SOURCE[0]}"))
REFMODEL_DIR=$(dirname "$SCRIPTS_DIR")
pip install -e "$REFMODEL_DIR"
+ pip install pytest
export PYTHONPATH="$SCRIPTS_DIR:$REFMODEL_DIR/thirdparty/serialization_lib/python"
echo "Set PYTHONPATH=$PYTHONPATH"
else
diff --git a/scripts/py-dev-env.sh b/scripts/py-dev-env.sh
index 904ff80..cc5da72 100644
--- a/scripts/py-dev-env.sh
+++ b/scripts/py-dev-env.sh
@@ -15,6 +15,7 @@ fi
if [ -e "setup.cfg" ]; then
pip install -e .
+ pip install pytest
export PYTHONPATH=$PWD/scripts:$PWD/thirdparty/serialization_lib/python
echo "Set PYTHONPATH=$PYTHONPATH"
else