summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2014-08-26 18:26:19 +0100
committerSam Clegg <sbc@chromium.org>2014-08-26 17:29:32 +0000
commit5f35ed44b90c99e00eb67f1a5fea4f81a78269fc (patch)
tree14a80cd5a352e25ce0be0104844f54ad912f90f4
parentaee4c9f50df8c0ab073c4313b292c3f5276d0b00 (diff)
downloadchromium_src-5f35ed44b90c99e00eb67f1a5fea4f81a78269fc.zip
chromium_src-5f35ed44b90c99e00eb67f1a5fea4f81a78269fc.tar.gz
chromium_src-5f35ed44b90c99e00eb67f1a5fea4f81a78269fc.tar.bz2
[NaCl SDK] Update getos.py tests to match new behaviour.
The revision reported by getos is now a string rather than an integer (since we use git shas now). The behavior was changes in https://codereview.chromium.org/502883002 but unfortunately the NaCl SDK bot are still not part of the CQ so it slipped through. BUG=406993 R=binji@chromium.org Review URL: https://codereview.chromium.org/507673003 Cr-Commit-Position: refs/heads/master@{#291926}
-rwxr-xr-xnative_client_sdk/src/tools/tests/getos_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/native_client_sdk/src/tools/tests/getos_test.py b/native_client_sdk/src/tools/tests/getos_test.py
index 498c52a..9004bd9 100755
--- a/native_client_sdk/src/tools/tests/getos_test.py
+++ b/native_client_sdk/src/tools/tests/getos_test.py
@@ -117,7 +117,7 @@ class TestGetosWithTempdir(TestCaseExtended):
def testGetSDKVersion(self):
"""correctly parses README to find SDK version."""
- expected_version = (16, 196)
+ expected_version = (16, '196')
with open(os.path.join(self.tempdir, 'README'), 'w') as out:
out.write('Version: %s\n' % expected_version[0])
out.write('Chrome Revision: %s\n' % expected_version[1])