From 949b30548b21630b1423f5ead8335bc5eb0bbc92 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 9 Oct 2011 14:38:10 -0400 Subject: 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 --- runtests.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtests.sh') 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= -- cgit v1.2.3-1-g7c22