diff options
author | clayg <clay.gerrard@gmail.com> | 2012-11-26 09:58:09 -0600 |
---|---|---|
committer | clayg <clay.gerrard@gmail.com> | 2012-12-07 14:08:49 -0800 |
commit | 1f83f007e8f2a063b326176c3b34b02d8e04181f (patch) | |
tree | 9fa935edf3f1d2e88ebdb3079345338d8ee795aa /.functests | |
parent | 13937ad696893898022517846ad17233fb57d61e (diff) | |
download | swift-1f83f007e8f2a063b326176c3b34b02d8e04181f.tar.gz |
Allow dot test runners from any dir
Currently the .*test files in the source tree root seem to assume you're
in that directory when you run them. This change should work exactly
the same except for removing that restriction.
Change-Id: I9b037016490dd6d5b515cb2c3cad2f99ee40bb6d
Diffstat (limited to '.functests')
-rwxr-xr-x | .functests | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.functests b/.functests index 56898294e..9797f58a1 100755 --- a/.functests +++ b/.functests @@ -1,11 +1,13 @@ #!/bin/bash -cd test/functional +SRC_DIR=$(dirname $0) + +cd ${SRC_DIR}/test/functional nosetests --exe $@ func1=$? cd - -cd test/functionalnosetests +cd ${SRC_DIR}/test/functionalnosetests nosetests --exe $@ func2=$? cd - |