aboutsummaryrefslogtreecommitdiff
path: root/ci-run
blob: 7244341abb305fa25b8b8d7612f2fdea755f8b05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

set -x
set -e

pep8 --ignore E501 .

if [ -z "$1" ] || [ "$1" == "--noinput" ]; then
  echo "If it exists, a broken test database will be deleted without prompting."
  NOINPUT='--noinput -v1'
fi

if [[ (-z "$1") || (("$1" == -v*) && ($# -eq 1)) ]]; then
  VERBOSE=$1
fi

if [ -n "$NOINPUT" ] || [ -n "$VERBOSE" ]; then
  ./lava_server/manage.py test $NOINPUT $VERBOSE \
	dashboard_app \
	lava_scheduler_app \
	lava_scheduler_daemon \
	linaro_django_xmlrpc.tests \
	lava_results_app
else
  ./lava_server/manage.py test "$@"
fi