c730eee368
This reverts commit a9fbc452a6
.
Reason for revert: refstack server gives 404 on the guidelines: https://refstack.openstack.org/#/guidelines .. seems like https://review.opendev.org/c/osf/refstack/+/790940 didn't handle the update of the guidelines location everywhere - I suspect that some changes in refstack-ui are needed as well, ah
Change-Id: I2685eb8fccb4dbdcf42683f168ee2cb316137196
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# This script will run consistency checks for Tempest tests against
|
|
# the three latest interoperability guidelines. It can run in two
|
|
# modes.
|
|
#
|
|
# * If no arguments are specified, the script will check out Tempest
|
|
# into a temporary directory, run the consistency checks, then delete
|
|
# temporary checkout.
|
|
#
|
|
# * If an argument is given, this script will assume that it is a
|
|
# user checked-out repository and run the consistency checks against
|
|
# that, and leave the directory unchanged on exit. This mode is useful
|
|
# for gate jobs and Tempest development.
|
|
|
|
set -x
|
|
|
|
if [ ! $@ ]; then
|
|
TEMPESTDIR=$(mktemp -d)
|
|
git clone https://opendev.org/openstack/tempest $TEMPESTDIR
|
|
CLEANTEMPEST=cleantempest
|
|
else
|
|
TEMPESTDIR=${1}
|
|
fi
|
|
|
|
PYTHONPATH=$TEMPESTDIR python ./tools/checktests.py --guideline next.json
|
|
exit_1=$?
|
|
|
|
PYTHONPATH=$TEMPESTDIR python ./tools/checktests.py --guideline 2018.02.json
|
|
exit_2=$?
|
|
|
|
PYTHONPATH=$TEMPESTDIR python ./tools/checktests.py --guideline 2018.11.json
|
|
exit_3=$?
|
|
|
|
if [[ ! -z "${CLEANTEMPEST}" ]]; then
|
|
rm -rf $TEMPESTDIR
|
|
fi
|
|
|
|
|
|
! (( $exit_1 || $exit_2 || $exit_3 ))
|