summaryrefslogtreecommitdiffstats
path: root/native_client_sdk
diff options
context:
space:
mode:
authorbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 22:11:33 +0000
committerbinji@chromium.org <binji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-10-17 22:11:33 +0000
commit828f0d554fb1f9fc7a3d47387784e33cd06bb0b5 (patch)
treefc302284621036baf3c0a4457ea361e46d75fb4e /native_client_sdk
parent509359873991ec89598cd37a1cd40e7dee7741e1 (diff)
downloadchromium_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-xnative_client_sdk/src/build_tools/tests/test_update_nacl_manifest.py5
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)