From b49bfcd40ca22c39ca7c58caf5f397b330e6720c Mon Sep 17 00:00:00 2001 From: Milosz Wasilewski Date: Thu, 15 Oct 2015 14:08:13 +0100 Subject: Android: Fixed ART microbenchmarks host side Environment variables were not available inside configure script. Adding '.' before script call fixes the issue. Change-Id: I9ee56b5fced142ffbcae23f5f88d947425bf4652 Signed-off-by: Milosz Wasilewski --- android/art-microbenchmarks.yaml | 2 +- android/scripts/configure-nexus9-for-benchmarks.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'android') diff --git a/android/art-microbenchmarks.yaml b/android/art-microbenchmarks.yaml index 7859aa2..b3d903d 100644 --- a/android/art-microbenchmarks.yaml +++ b/android/art-microbenchmarks.yaml @@ -39,7 +39,7 @@ run: - IPADDR=`awk -F '=' '{print $2}' /tmp/lava_multi_node_cache.txt` - if [ $IPADDR != "_MISSING_" ] - then - - ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh + - . ./android/scripts/configure-$TARGET_DEVICE-for-benchmarks.sh - ./art-testing/run.py -t $IPADDR --iterations $ITERATIONS --mode $MODE | tee logs.txt - ./android/scripts/parse-ubenchmarks-results.sh art-testing/benchmarking/java-ubenchs/logs.txt - lava-test-run-attach res.*.pkl diff --git a/android/scripts/configure-nexus9-for-benchmarks.sh b/android/scripts/configure-nexus9-for-benchmarks.sh index d32c039..977cb79 100755 --- a/android/scripts/configure-nexus9-for-benchmarks.sh +++ b/android/scripts/configure-nexus9-for-benchmarks.sh @@ -1,3 +1,5 @@ +#!/bin/bash +echo "configuring Nexus9 on: $IPADDR" adb -s $IPADDR wait-for-device adb -s $IPADDR shell stop adb -s $IPADDR shell "echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" -- cgit v1.2.3