File: tempest_shell_wrapper

package info (click to toggle)
tempest 1%3A43.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,784 kB
  • sloc: python: 86,268; sh: 174; makefile: 56
file content (29 lines) | stat: -rwxr-xr-x 654 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 .stestr ] ; then
	PYTHON=python3 stestr init
fi

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

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