From: Mike Frysinger Date: Sun, 9 Oct 2011 18:38:10 +0000 (-0400) Subject: runtests: make sure we are in the right dir X-Git-Tag: v2.2.0_alpha65~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=949b30548b21630b1423f5ead8335bc5eb0bbc92;p=portage.git runtests: make sure we are in the right dir The code assumes we're in the top of the tree (when it tries to run with the full path "pym/portage/tests/runTests"), so try to make sure we are in the right place to allow things like `../runtests.sh` to "just work". Signed-off-by: Mike Frysinger --- diff --git a/runtests.sh b/runtests.sh index 981fa1ec2..d55860af0 100755 --- a/runtests.sh +++ b/runtests.sh @@ -4,6 +4,9 @@ PYTHON_VERSIONS="2.6 2.7 3.1 3.2 3.3" +# has to be run from portage root dir +cd "${0%/*}" || exit 1 + case "${NOCOLOR:-false}" in yes|true) GOOD=