File: tempest_shell_wrapper

package info (click to toggle)
tempest 1%3A12.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,672 kB
  • ctags: 8,165
  • sloc: python: 57,029; sh: 408; makefile: 74
file content (29 lines) | stat: -rwxr-xr-x 616 bytes parent folder | download
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
27
28
29
#!/bin/sh

set -e

EXCLUDE_FILE=/etc/tempest/exclude.conf
TMP_EXCLUDE=`mktemp -t nose-exclude-XXXXXX`
if [ -r "${EXCLUDE_FILE}" ] ; then
	for i in `grep -v -e '^#' -e '^[ \t]*$' ${EXCLUDE_FILE}` ; do
		if [ -n "${A}" ] ; then
			A="${A}|"'.*'"${i}"'.*'
		else
			A='.*'${i}'.*'
		fi
	done
fi

cd /var/lib/tempest

if [ ! -d .testrepository ] ; then
	testr init
fi

if [ -z "${1}" ] && [ -n ${A} ] ; then
	testr run --parallel --concurrency=2 --subunit '^(?!('"${A}"'))' $@ | subunit-trace
else
	testr run --parallel --concurrency=2 --subunit $@ | subunit-trace
fi

#testr run --parallel --subunit $@ | subunit-trace