Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Upgrade pre-commit hook repos to latest"
[releng/global-jjb.git]
/
shell
/
check-info-votes.sh
diff --git
a/shell/check-info-votes.sh
b/shell/check-info-votes.sh
index
51ca172
..
fb489af
100644
(file)
--- a/
shell/check-info-votes.sh
+++ b/
shell/check-info-votes.sh
@@
-25,14
+25,21
@@
if [ -d "/opt/pyenv" ]; then
export PATH="$PYENV_ROOT/bin:$PATH"
PYTHONPATH=$(pwd)
export PYTHONPATH
export PATH="$PYENV_ROOT/bin:$PATH"
PYTHONPATH=$(pwd)
export PYTHONPATH
- pyenv local 3.6.4
+
+ latest_version=$(pyenv versions \
+ | sed s,*,,g \
+ | awk '/[0-9]+/{ print $1 }' \
+ | sort --version-sort \
+ | awk '/./{line=$0} END{print line}')
+
+ pyenv local "$latest_version"
export PYENV_VERSION="3.6.4"
fi
export PYENV_VERSION="3.6.4"
fi
-$pip install
--user
niet
-$pip install
--user
lftools
-$pip install
--user
lftools[nexus]
-$pip install
--user
jsonschema
+$pip install niet
+$pip install lftools
+$pip install lftools[nexus]
+$pip install jsonschema
echo "Checking votes:"
lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt
echo "Checking votes:"
lftools infofile check-votes INFO.yaml "$GERRIT_URL" "$ref" > gerrit_comment.txt