diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2017-08-30 03:49:04 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-30 03:49:04 +0000 |
commit | 134b63c1ffe5aec975a97c6e363aa4589909e797 (patch) | |
tree | b5dcde35107d6b6f855356b8c66153ad9abb666c | |
parent | 461e49c70daa12906f36593d06a92a0ba69fdeb9 (diff) | |
parent | d690433c10b59815b317980c63bca13117894585 (diff) | |
download | benchmark-134b63c1ffe5aec975a97c6e363aa4589909e797.tar.gz |
Merge "Fix bug patching panorama benchmark" am: 8c9803af0e am: a74e27fa53 am: c34cebcd33
am: d690433c10
Change-Id: I75aaa68e3cbcf9ea1fb69f147f612bbbbe4b1023
-rwxr-xr-x | apply_patches.py | 1 | ||||
-rwxr-xr-x | discard_patches.py | 5 | ||||
-rwxr-xr-x | run.py | 4 |
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(): @@ -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.') |