#!/bin/sh

set -e

PYTHON3S=3
set -e ; set -x ; for i in ${PYTHON3S} ; do
	http_proxy=127.0.0.1:9 https_proxy=127.0.0.9:9 \
	HTTP_PROXY=127.0.0.1:9 HTTPS_PROXY=127.0.0.1:9 \
	PYTHON=python${i} python${i} -m coverage run -a -m pytest horizon/test/ -n $(nproc --all) -v --ds=horizon.test.settings -m "not selenium and not integration and not test_rbac_panels"
	PYTHON=python${i} python${i} -m coverage run -a -m pytest openstack_dashboard -v --ds=openstack_dashboard.test.settings -m "not selenium and not integration"
	PYTHON=python${i} python${i} -m coverage run -a -m pytest openstack_auth/tests -n $(nproc --all) -v --ds=openstack_auth.tests.settings -m "not selenium and not integration"
done
