Skip to content

Commit

Permalink
FIXUP: scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rjeffman committed Jun 29, 2024
1 parent 946b36b commit 91aa1a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion utils/set_test_modules
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ die() {

TOPDIR="$(dirname "${BASH_SOURCE[0]}")/.."

[ -n "$(command -v python3)" ] && python="$(command -v python3)" || python="$(command -v python2)"

pushd "${TOPDIR}" >/dev/null 2>&1 || die "Failed to change directory."

files_list=$(mktemp)
Expand All @@ -25,7 +27,7 @@ git diff "${remote}/master" --name-only > "${files_list}"
git remote remove ${remote}

# Get all modules that should have tests executed
enabled_modules="$(python utils/get_test_modules.py $(cat "${files_list}"))"
enabled_modules="$(${python} utils/get_test_modules.py $(cat "${files_list}"))"
[ -z "${enabled_modules}" ] && enabled_modules="None"

# Get individual tests that should be executed
Expand Down

0 comments on commit 91aa1a5

Please sign in to comment.