aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorAlexandre Rames <alexandre.rames@linaro.org>2015-10-05 10:22:18 +0100
committerAlexandre Rames <alexandre.rames@linaro.org>2015-10-12 12:01:12 +0100
commitc95f35c33ed628036a04bd457dee1a0872c692cb (patch)
tree754c891a094c706b77e02988246a977db20ef28a /build.sh
parent3fec7b5869d05bb06d9cc06ae21ba7929418227a (diff)
downloadart-testing-c95f35c33ed628036a04bd457dee1a0872c692cb.tar.gz
Fix execution of `build.sh` and `run.py` non-root paths.
Change-Id: I36a5899c2883965bc99195507e6903eb71ece3b9
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 3eb5c5c..34cfc72 100755
--- a/build.sh
+++ b/build.sh
@@ -113,8 +113,9 @@ set +f
# the benchmark framework to indicate what benchmark classes are available.
# Remove the `.java` extension.
JAVA_BENCHMARK_CLASSES=${JAVA_BENCHMARK_FILES//.java/}
-# Remove the leading `./` and `benchmarks`.
+# Remove the leading full or relative path.
JAVA_BENCHMARK_CLASSES=${JAVA_BENCHMARK_CLASSES//.\//}
+JAVA_BENCHMARK_CLASSES=${JAVA_BENCHMARK_CLASSES//$DIR_ROOT\//}
# Trim trailing whitespaces.
JAVA_BENCHMARK_CLASSES=${JAVA_BENCHMARK_CLASSES/%[[:space:]]/}
read -a array <<< $JAVA_BENCHMARK_CLASSES