swift/.functests
Tim Burke 86952dd3ed tests: Stop invoking python just to get the real source directory
While we're at it, stop checking for a seven-year-old version of nose --
we already list a newer version in test-requirements.txt anyway.

Change-Id: I97beace3094f11286730b99653dc1e8f699c5aec
2019-10-15 15:08:42 -07:00

16 lines
337 B
Bash
Executable File

#!/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="--concurrency 1 ${@:-"--pretty"}"
ostestr $ARGS
rvalue=$?
cd - > /dev/null
exit $rvalue