Skip to content

Commit

Permalink
if shopt is available, enable 'globstar' before iterating over ** glob
Browse files Browse the repository at this point in the history
  • Loading branch information
JGreenlee committed Oct 23, 2024
1 parent 1809ce3 commit 0b830b5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/run_jest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ ROOT_DIR_ABSOLUTE=$(realpath .)
# remove any existing test_js_* directories (from previous runs)
rm -rf $ROOT_DIR_ABSOLUTE/test_js_*

# if shopt is available, enable globstar
if command -v shopt >/dev/null 2>&1; then
shopt -s globstar
echo "Enabled globstar in shopt"
fi

for file in test/**/test_*.py; do
# if there is a .js file in the same directory, skip
Expand Down

0 comments on commit 0b830b5

Please sign in to comment.