Fix tools/ci/tox script when 'python' command is not available

Change-Id: I73f5b45de60f47a489a8140ab63baa899599e34e
This commit is contained in:
Federico Ressi 2020-01-27 11:37:49 +01:00
parent 8e72be4dbc
commit e91356faeb
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,8 @@ function get_realpath {
local script=$("${python}" "${script}" "${script}")
echo "${python}" "${script}"
else
which realpath
echo "Python command not found!" 1>&2
exit 1
fi
)
}

View File

@ -103,7 +103,7 @@ function tox_install_bindeps {
local missing_packages=( $(bindep -b -f "${bindep_file}") )
if [ "${#missing_packages[@]}" != "0" ]; then
tox_install_packages "${missing_packages[@]}"
"${BINDEP}" -f "${bindep_file}"
bindep -f "${bindep_file}"
fi
}