Files
5a8cfd6e06d4ee7f47c5926c3859cbd6161c0d1a
swift /.functests
Gerard Gine 57306181f1 Improved usage of args in .functests
If we're calling the script with any arguments, --pretty will not
be passed to ostestr.
Also redirected cd commands' output to /dev/null in .functests.
Change-Id: I6e7e391c7e1659b86ab12eae4362b565218917b2
2018年02月14日 12:31:17 -08:00

16 lines
374 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=$(python -c "import os; print os.path.dirname(os.path.realpath('0ドル'))")
cd ${SRC_DIR} > /dev/null
export TESTS_DIR=${SRC_DIR}/test/functional
ARGS="--serial ${@:-"--pretty"}"
ostestr $ARGS
rvalue=$?
cd - > /dev/null
exit $rvalue