aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Williams <neil.williams@linaro.org>2018-06-14 14:34:42 +0100
committerRemi Duraffort <remi.duraffort@linaro.org>2018-06-15 08:07:16 +0000
commit661cda0b5d8176dfcff6f4324a35b894e0d9e174 (patch)
tree23d50b09c39ceef885dc3b0498a0c42ce544941c
parent325309ba93b3a8d24df765d0d18f8d5fb780d8d8 (diff)
downloadlava-661cda0b5d8176dfcff6f4324a35b894e0d9e174.tar.gz
Allow ci-run just for server
Change-Id: Ieba15cbf95225edd3c19bafdd20cca9edc0a76d5
-rwxr-xr-xci-run12
1 files changed, 11 insertions, 1 deletions
diff --git a/ci-run b/ci-run
index 8b48e85e3..4697b2e43 100755
--- a/ci-run
+++ b/ci-run
@@ -3,7 +3,7 @@
set -x
set -e
-while getopts ":pdtyc" opt; do
+while getopts ":pdstyc" opt; do
case $opt in
p)
# pep8 only
@@ -13,6 +13,10 @@ while getopts ":pdtyc" opt; do
# lava_dispatcher only
DISPATCH=true
;;
+ s)
+ # lava_server only
+ SERVER=true
+ ;;
t)
# template tests only
TEMPLATE=true
@@ -30,6 +34,7 @@ while getopts ":pdtyc" opt; do
echo "-c - clean targets only"
echo "-p - clean and pep8 only"
echo "-d - clean, pep8 and dispatcher only"
+ echo "-s - clean, pep8 and server only"
echo "-t - clean, pep8 and templates only"
echo "Invalid option: -$OPTARG" >&2
exit 1
@@ -65,10 +70,15 @@ if [ -z "${DISPATCH}" -a -z "${TEMPLATE}" -a -z "${PYTEST}" ]
then
echo "If it exists, a broken test database will be deleted without prompting."
python3 ./lava_server/manage.py test --noinput -v 2 lava_scheduler_app linaro_django_xmlrpc.tests lava_results_app
+ if [ -n "${SERVER}" ]
+ then
+ exit
+ fi
python3 -m unittest discover -v lava_dispatcher/test
exit
fi
+
if [ -n "${DISPATCH}" -a -z "${TEMPLATE}" -a -z "${PYTEST}" ]
then
python3 -m unittest discover -v lava_dispatcher/test