diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2014-09-17 17:06:05 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2014-09-17 22:47:15 +0200 |
commit | 3831a3605601c590a3edaaad7c2e3e911c9c82ed (patch) | |
tree | 35dc8740ad9bc8712a5aace160bc233266669faa | |
parent | e43e517a622366a1dec51e145ffc7b3351144360 (diff) | |
download | clufter-3831a3605601c590a3edaaad7c2e3e911c9c82ed.tar.gz clufter-3831a3605601c590a3edaaad7c2e3e911c9c82ed.tar.xz clufter-3831a3605601c590a3edaaad7c2e3e911c9c82ed.zip |
run-tests: do not depend on coreutils/realpath
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rwxr-xr-x | __root__/run-tests | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/__root__/run-tests b/__root__/run-tests index 655382b..e792fee 100755 --- a/__root__/run-tests +++ b/__root__/run-tests @@ -1,6 +1,6 @@ #!/bin/sh # Copyright 2014 Red Hat, Inc. -# Part of clufter project +# Part of clufter project # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) # Specific tests can be specified as per [1], e.g.: @@ -9,10 +9,16 @@ # --- # [1] http://docs.python.org/2/library/unittest.html#command-line-interface -PATH=${PATH:+${PATH}:}$(dirname $(dirname $(realpath -e "$0"))) +PATH="${PATH:+${PATH}:}$( + dirname "$( + dirname "$(pwd)/$( + ls -l "$(echo "${0}" | sed 's|\./||')" | cut -d'>' -f2 | awk '{print $NF}' + )" + )" +)" echo "Current path: ${PATH}" which ccs_flatten 2>/dev/null || ( - cd __root__ + cd __root__ 2>/dev/null python setup.py pkg_prepare --build-develop && make -C ccs-flatten symlink ) || { ret=$?; echo "ccs_flatten missing, cannot be built"; exit ${ret}; } |