summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-08-30 02:08:56 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-30 02:08:56 +0000
commit8c9803af0ec9cb1d0037b7894cb09f829da1db87 (patch)
treeb5dcde35107d6b6f855356b8c66153ad9abb666c
parentefd3c08cb9538fce4ad74210fab180f5d02c752c (diff)
parentbd23f99b6e4016cee6108f40695268d3a3f4dbc1 (diff)
downloadbenchmark-8c9803af0ec9cb1d0037b7894cb09f829da1db87.tar.gz
Merge "Fix bug patching panorama benchmark"
-rwxr-xr-xapply_patches.py1
-rwxr-xr-xdiscard_patches.py5
-rwxr-xr-xrun.py4
3 files changed, 8 insertions, 2 deletions
diff --git a/apply_patches.py b/apply_patches.py
index e0499d44..ff706f1d 100755
--- a/apply_patches.py
+++ b/apply_patches.py
@@ -64,6 +64,7 @@ def try_patch_panorama():
# FIXME: A quick hack, need to handle errors and check whether has been
# applied in the future.
try:
+ subprocess.check_call(['mkdir', '-p', panorama_dir])
subprocess.check_call(['git', '-C', panorama_dir, 'apply', panorama_patch])
print('Panorama patched successfully!')
except subprocess.CalledProcessError:
diff --git a/discard_patches.py b/discard_patches.py
index 7a4b0b56..4dd99ead 100755
--- a/discard_patches.py
+++ b/discard_patches.py
@@ -36,6 +36,11 @@ def dispatch_panorama():
panorama_dir = os.path.join(config.android_home,
config.bench_dict['Panorama'])
discard_git(panorama_dir)
+ try:
+ subprocess.check_call(['rm', '-rf', panorama_dir])
+ print('Panorama benchmark directory deleted successfully!')
+ except subprocess.CalledProcessError:
+ print('Error deleting Panorama benchmark directory')
def dispatch_synthmark():
diff --git a/run.py b/run.py
index 55acb663..e74162b6 100755
--- a/run.py
+++ b/run.py
@@ -109,12 +109,12 @@ def _parse_arguments(argv):
parser.add_argument(
'--frequency',
type=int,
- default=960000,
+ default=979200,
help='Specify the CPU frequency of the device. The '
'unit is KHZ. The available value is defined in'
'cpufreq/scaling_available_frequency file in '
'device\'s each core directory. '
- 'The default value is 960000, which shows a '
+ 'The default value is 979200, which shows a '
'balance in noise and performance. Lower '
'frequency will slow down the performance but '
'reduce noise.')