summaryrefslogtreecommitdiff
path: root/.functests
diff options
context:
space:
mode:
authorTim Burke <tim.burke@gmail.com>2019-10-15 15:06:35 -0700
committerTim Burke <tim.burke@gmail.com>2019-10-15 15:08:42 -0700
commit86952dd3edf4ca45f8df7440cb8b6d31d9e415d7 (patch)
treedc760c5b75a53e8c14c0de1e52eec59ce31debf8 /.functests
parent294472464a8dfeab1f680eac78d4dd8c45552395 (diff)
downloadswift-86952dd3edf4ca45f8df7440cb8b6d31d9e415d7.tar.gz
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
Diffstat (limited to '.functests')
-rwxr-xr-x.functests2
1 files changed, 1 insertions, 1 deletions
diff --git a/.functests b/.functests
index cd3c31129..82638240b 100755
--- a/.functests
+++ b/.functests
@@ -3,7 +3,7 @@
# 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')))")
+SRC_DIR=$(dirname $(realpath "$0"))
cd ${SRC_DIR} > /dev/null
export TESTS_DIR=${SRC_DIR}/test/functional