diff options
author | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 22:11:33 +0000 |
---|---|---|
committer | binji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-17 22:11:33 +0000 |
commit | 828f0d554fb1f9fc7a3d47387784e33cd06bb0b5 (patch) | |
tree | fc302284621036baf3c0a4457ea361e46d75fb4e /native_client_sdk | |
parent | 509359873991ec89598cd37a1cd40e7dee7741e1 (diff) | |
download | chromium_src-828f0d554fb1f9fc7a3d47387784e33cd06bb0b5.zip chromium_src-828f0d554fb1f9fc7a3d47387784e33cd06bb0b5.tar.gz chromium_src-828f0d554fb1f9fc7a3d47387784e33cd06bb0b5.tar.bz2 |
[NaCl SDK] Fix testUpdateVitals.
BUG=none
R=sbc@chromium.org
TBR=noelallen@chromium.org
NOTRY=true
Review URL: https://chromiumcodereview.appspot.com/11198039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162548 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'native_client_sdk')
-rwxr-xr-x | native_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/native_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py b/native_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py index 1749331..310ca49 100755 --- a/native_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py +++ b/native_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py @@ -540,7 +540,10 @@ class TestUpdateVitals(unittest.TestCase): self.assertTrue('size' not in archive) self.assertTrue('checksum' not in archive) - manifest.Validate() + with self.assertRaises(manifest_util.Error): + manifest.Validate() + + manifest.Validate(add_missing_info=True) self.assertEqual(archive['size'], 15) self.assertEqual(archive['checksum']['sha1'], self.sha1) |