1 |
The code assumes we're in the top of the tree (when it tries to run with |
2 |
the full path "pym/portage/tests/runTests"), so try to make sure we are |
3 |
in the right place to allow things like `../runtests.sh` to "just work". |
4 |
|
5 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
6 |
--- |
7 |
runtests.sh | 3 +++ |
8 |
1 files changed, 3 insertions(+), 0 deletions(-) |
9 |
|
10 |
diff --git a/runtests.sh b/runtests.sh |
11 |
index 981fa1e..d55860a 100755 |
12 |
--- a/runtests.sh |
13 |
+++ b/runtests.sh |
14 |
@@ -4,6 +4,9 @@ |
15 |
|
16 |
PYTHON_VERSIONS="2.6 2.7 3.1 3.2 3.3" |
17 |
|
18 |
+# has to be run from portage root dir |
19 |
+cd "${0%/*}" || exit 1 |
20 |
+ |
21 |
case "${NOCOLOR:-false}" in |
22 |
yes|true) |
23 |
GOOD= |
24 |
-- |
25 |
1.7.6.1 |