Index: tests/common.sh |
diff --git a/tests/common.sh b/tests/common.sh |
index 1e2ca03fe791b061d8492e49b8deca49bdb990b9..cd7695f0bd62aae932245ea9e2803301a143a3c2 100755 |
--- a/tests/common.sh |
+++ b/tests/common.sh |
@@ -5,15 +5,7 @@ |
# found in the LICENSE file. |
# Determine script directory. |
-if [[ $0 == '/'* ]]; |
-then |
- SCRIPT_DIR="`dirname $0`" |
-elif [[ $0 == './'* ]]; |
-then |
- SCRIPT_DIR="`pwd`" |
-else |
- SCRIPT_DIR="`pwd`"/"`dirname $0`" |
-fi |
+SCRIPT_DIR=$(dirname $(readlink -f "$0")) |
vb
2010/08/19 23:15:35
This is a noop change, right?
It of course is a
gauravsh
2010/08/19 23:34:47
FYI, The original complicated logic for determinin
Bill Richardson
2010/08/19 23:59:34
Yes. That's why I added it in the first place. The
|
ROOT_DIR="$(dirname ${SCRIPT_DIR})" |
BUILD_DIR="${ROOT_DIR}/build" |