summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/modules/js/util-test
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/modules/js/util-test')
-rwxr-xr-xsca-cpp/trunk/modules/js/util-test4
1 files changed, 2 insertions, 2 deletions
diff --git a/sca-cpp/trunk/modules/js/util-test b/sca-cpp/trunk/modules/js/util-test
index ccfb377bd1..08407ea2d1 100755
--- a/sca-cpp/trunk/modules/js/util-test
+++ b/sca-cpp/trunk/modules/js/util-test
@@ -18,7 +18,7 @@
# under the License.
# Run Javascript util test cases
-here=`readlink -f $0`; here=`dirname $here`
+here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here`
echo "Testing..."
cat htdocs/util.js htdocs/elemutil.js htdocs/jsonutil.js json-test.js | ./js-eval 2>/dev/null 1>&2
@@ -27,4 +27,4 @@ if [ "$rc" = "0" ]; then
echo "OK"
fi
-return $rc
+exit $rc