diff options
author | Andy Doan <andy.doan@linaro.org> | 2015-10-15 14:15:26 -0500 |
---|---|---|
committer | Andy Doan <andy.doan@linaro.org> | 2015-10-15 15:25:48 -0500 |
commit | aa18c657d03cf9800facdd15110d358bb187dfdb (patch) | |
tree | 6b0d85c938535c5c89b67cc75aa7fbcfde4739db /unit-test.sh | |
parent | 5b3cf1c6f84c30ee82e364a9e31445d1275859fd (diff) |
Add requirement for "longerusername"
It turns out we've always "required" this. However, sqlite must not
enforce proper username constraints. When running this application
against a postgres database, I ran into issue with usernames being too
long. This requires a corresponding change to ansible to make sure we
install the requirement.
I also had to update unit-test.sh. The new docker slaves in CI are
missing python-virtualenv.
Change-Id: I1a17029b3e0c45364d9a0f87fa83b38f48ca8115
Diffstat (limited to 'unit-test.sh')
-rwxr-xr-x | unit-test.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/unit-test.sh b/unit-test.sh index 7da1efd..6479ab8 100755 --- a/unit-test.sh +++ b/unit-test.sh @@ -6,6 +6,11 @@ cd $HERE SKIP_LINT="${SKIP_LINT-1}" VENV_DIR="${VENV_DIR-$HERE/.venv}" +if [ ! -f /usr/bin/virtualenv ] ; then + echo "installing python-virutalenv" + sudo apt-get install -f python-virtualenv +fi + if [ -z $VIRTUAL_ENV ] ; then echo "creating venv: $VENV_DIR ..." virtualenv $VENV_DIR |