diff options
author | Alexandre Rames <alexandre.rames@linaro.org> | 2015-10-05 10:22:18 +0100 |
---|---|---|
committer | Alexandre Rames <alexandre.rames@linaro.org> | 2015-10-12 12:01:12 +0100 |
commit | c95f35c33ed628036a04bd457dee1a0872c692cb (patch) | |
tree | 754c891a094c706b77e02988246a977db20ef28a /build.sh | |
parent | 3fec7b5869d05bb06d9cc06ae21ba7929418227a (diff) | |
download | art-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-x | build.sh | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |