summaryrefslogtreecommitdiff
path: root/.functests
blob: 3d1af25b73ad04081018b706a5bab9d6d08b2af9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

# How-To debug functional tests:
# SWIFT_TEST_IN_PROCESS=1 tox -e func -- --pdb test.functional.tests.TestFile.testCopy

SRC_DIR=$(dirname $(realpath "$0"))

cd ${SRC_DIR} > /dev/null
export TESTS_DIR=${SRC_DIR}/test/functional
ARGS="run --concurrency 1 $@"
stestr $ARGS || stestr run --concurrency 1 --failing
rvalue=$?
cd -  > /dev/null

exit $rvalue