Skip to content

Commit

Permalink
Fixed issue with pathing to raven
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb-sitton-inl committed Aug 1, 2024
1 parent de2393f commit 99a2c30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions check_py_coverage.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
SCRIPT_DIRNAME=`dirname $0`
SCRIPT_DIR=`(cd $SCRIPT_DIRNAME; pwd)`
source $SCRIPT_DIR/../../scripts/establish_conda_env.sh --quiet --load
RAVEN_DIR=`python -c 'from src._utils import get_raven_loc; print(get_raven_loc())'`
source $RAVEN_DIR/scripts/establish_conda_env.sh --quiet --load
RAVEN_LIBS_PATH=`conda env list | awk -v rln="$RAVEN_LIBS_NAME" '$0 ~ rln {print $NF}'`
BUILD_DIR=${BUILD_DIR:=$RAVEN_LIBS_PATH/build}
INSTALL_DIR=${INSTALL_DIR:=$RAVEN_LIBS_PATH}
Expand Down Expand Up @@ -62,7 +63,7 @@ EXTRA="--source=${SOURCE_DIRS[@]} --omit=${OMIT_FILES[@]} --parallel-mode "
export COVERAGE_FILE=`pwd`/.coverage

coverage erase
($SRC_DIR/../../../run_tests "$@" --re=HERON/tests --python-command="coverage run $EXTRA " || echo run_tests done but some tests failed)
($RAVEN_DIR/run_tests "$@" --re=HERON/tests --python-command="coverage run $EXTRA " || echo run_tests done but some tests failed)

#get DISPLAY BACK
DISPLAY=$DISPLAY_VAR
Expand Down
1 change: 0 additions & 1 deletion heron
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ source $RAVEN_DIR/scripts/establish_conda_env.sh --quiet
declare -a ARGS
while test $# -gt 0
do
# right now we don't have any keyword arguments for this script, but leave this for now
case "$1" in
--python-command=*)
PYTHON_COMMAND="${1#*=}"
Expand Down

0 comments on commit 99a2c30

Please sign in to comment.