diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2017-08-30 02:43:41 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-08-30 02:43:41 +0000 |
commit | c34cebcd333037480e49bf5171d251e8a26afde8 (patch) | |
tree | b5dcde35107d6b6f855356b8c66153ad9abb666c | |
parent | 455410dd2bc94a0c53dd8d6883ccd53ee16aeba6 (diff) | |
parent | a74e27fa53eff16d8f17d385abfd4cb570416644 (diff) | |
download | benchmark-c34cebcd333037480e49bf5171d251e8a26afde8.tar.gz |
Merge "Fix bug patching panorama benchmark" am: 8c9803af0e
am: a74e27fa53
Change-Id: Ic202e8196a08c07f2131f125cae311709e0a37de
-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.') |