Skip to content

Commit

Permalink
fix path in test scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dding3 committed Aug 24, 2021
1 parent a675a52 commit 0b7216f
Showing 4 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions python/dllib/test/dev/prepare_env.sh
Original file line number Diff line number Diff line change
@@ -16,9 +16,9 @@

SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
echo "SCRIPT_DIR": $SCRIPT_DIR
export DL_PYTHON_HOME="$(cd ${SCRIPT_DIR}/../../; pwd)"
export DL_PYTHON_HOME="$(cd ${SCRIPT_DIR}/../../src; pwd)"

export BIGDL_HOME="$(cd ${SCRIPT_DIR}/../../..; pwd)"
export BIGDL_HOME="$(cd ${SCRIPT_DIR}/../../../..; pwd)"

echo "BIGDL_HOME: $BIGDL_HOME"
echo "SPARK_HOME": $SPARK_HOME
4 changes: 2 additions & 2 deletions python/dllib/test/dev/run-caffe.sh
Original file line number Diff line number Diff line change
@@ -28,8 +28,8 @@ echo "${cyan}Using python version: $p${reset}"
export PYTHON_EXECUTABLE=$p
export PYSPARK_PYTHON=$p
export PYSPARK_DRIVER_PYTHON=$p
$p -m pytest -v ../../../python/test/bigdl/caffe/ \
--ignore=../../../python/test/bigdl/caffe/caffe_layers.py
$p -m pytest -v ../../../python/dllib/test/bigdl/caffe/ \
--ignore=../../../python/dllib/test/bigdl/caffe/caffe_layers.py
exit_status=$?
echo "running caffe layer unit tests"
if [ $exit_status -ne 0 ];
2 changes: 1 addition & 1 deletion python/dllib/test/dev/run-keras.sh
Original file line number Diff line number Diff line change
@@ -32,7 +32,7 @@ echo "${cyan}Using python version: $p${reset}"
export PYTHON_EXECUTABLE=$p
export PYSPARK_PYTHON=$p
export PYSPARK_DRIVER_PYTHON=$p
$p -m pytest -v ../../../python/test/bigdl/keras
$p -m pytest -v ../../../python/dllib/test/bigdl/keras

exit_status=$?
if [ $exit_status -ne 0 ];
20 changes: 10 additions & 10 deletions python/dllib/test/dev/run-tests
Original file line number Diff line number Diff line change
@@ -33,17 +33,17 @@ do
export PYTHON_EXECUTABLE=$p
export PYSPARK_PYTHON=$p
export PYSPARK_DRIVER_PYTHON=$p
$p -m pytest -v --junitxml result_bigdl_${p}.xml --doctest-modules ../../../python/bigdl \
--ignore=../../../python/bigdl/dllib/feature/dataset/ \
--ignore=../../../python/bigdl/dllib/utils/tf_utils.py \
--ignore=../../../python/bigdl/dllib/keras \
--ignore=../../../python/test/bigdl/keras/test_application.py \
--ignore=../../../python/bigdl/dllib/examples/ \
--ignore=../../../python/bigdl/dllib/models/ && \
$p -m pytest -v --junitxml result_bigdl_${p}.xml --doctest-modules ../../../dllib/src/bigdl \
--ignore=../../../dllib/src/bigdl/dllib/feature/dataset/ \
--ignore=../../../dllib/src/bigdl/dllib/utils/tf_utils.py \
--ignore=../../../dllib/src/bigdl/dllib/keras \
--ignore=../../../dllib/test/bigdl/keras/test_application.py \
--ignore=../../../dllib/src/bigdl/dllib/examples/ \
--ignore=../../../dllib/src/bigdl/dllib/models/ && \
$p -m pytest -v --junitxml result_test_${p}.xml ../../../python/test/ \
--ignore=../../../python/test/bigdl/caffe/ \
--ignore=../../../python/test/bigdl/keras/ \
--ignore=../../../python/test/bigdl/test_utils.py
--ignore=../../../dllib/test/bigdl/caffe/ \
--ignore=../../../dllib/test/bigdl/keras/ \
--ignore=../../../dllib/test/bigdl/test_utils.py

exit_status=$?
if [ $exit_status -ne 0 ];

0 comments on commit 0b7216f

Please sign in to comment.