File: tempest_shell_wrapper

package info (click to toggle)
tempest 1%3A19.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 7,564 kB
  • sloc: python: 69,123; sh: 196; makefile: 80
file content (29 lines) | stat: -rwxr-xr-x 685 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
	PYTHON=python3 testr-python3 init
fi

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

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