diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-02-15 03:23:48 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-02-15 03:23:48 +0000 |
commit | 3b46527da85b8139d5fcf887387bcd4de20dec41 (patch) | |
tree | 35fa0fbaeaaddd9cc2a126a05eee3527b51e83a8 /binary_search_tool/test/is_good_noinc_prune.py | |
parent | 62564f20dc6f3a88caed664d54fc00dbf3bf7373 (diff) | |
parent | b75f321fc8978b92ce3db6886ccb966768f0c7a8 (diff) | |
download | toolchain-utils-android11-d1-s5-release.tar.gz |
Snap for 6210127 from b75f321fc8978b92ce3db6886ccb966768f0c7a8 to rvc-d1-releaseandroid-11.0.0_r9android-11.0.0_r8android-11.0.0_r7android-11.0.0_r15android-11.0.0_r14android-11.0.0_r13android-11.0.0_r12android-11.0.0_r11android-11.0.0_r10android11-d1-s7-releaseandroid11-d1-s6-releaseandroid11-d1-s5-releaseandroid11-d1-s1-releaseandroid11-d1-release
Change-Id: I508eae962f523cfa857b4da7c77fdb8a70dfab1e
Diffstat (limited to 'binary_search_tool/test/is_good_noinc_prune.py')
-rwxr-xr-x | binary_search_tool/test/is_good_noinc_prune.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/binary_search_tool/test/is_good_noinc_prune.py b/binary_search_tool/test/is_good_noinc_prune.py index a900bd32..c0e42bb1 100755 --- a/binary_search_tool/test/is_good_noinc_prune.py +++ b/binary_search_tool/test/is_good_noinc_prune.py @@ -1,4 +1,9 @@ -#!/usr/bin/env python2 +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# Copyright 2020 The Chromium OS Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + """Check to see if the working set produces a good executable. This test script is made for the noincremental-prune test. This makes sure @@ -12,16 +17,16 @@ from __future__ import print_function import os import sys -import common +from binary_search_tool.test import common def Main(): working_set = common.ReadWorkingSet() - with open('noinc_prune_good', 'r') as good_args: + with open('noinc_prune_good', 'r', encoding='utf-8') as good_args: num_good_args = len(good_args.readlines()) - with open('noinc_prune_bad', 'r') as bad_args: + with open('noinc_prune_bad', 'r', encoding='utf-8') as bad_args: num_bad_args = len(bad_args.readlines()) num_args = num_good_args + num_bad_args |