Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Unified Diff: tests/bitmaps/TestBmpBlock.py

Issue 6533012: Write images to the bmpblock in the order they appear in the yaml. (Closed) Base URL: http://git.chromium.org/git/vboot_reference.git@master
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tests/bitmaps/case_order1.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/bitmaps/TestBmpBlock.py
diff --git a/tests/bitmaps/TestBmpBlock.py b/tests/bitmaps/TestBmpBlock.py
index ced270ee0cc908c42cb7a83480177b71494b0c25..cfab2ff742e6e6397beb8d885929d7a6ca139564 100755
--- a/tests/bitmaps/TestBmpBlock.py
+++ b/tests/bitmaps/TestBmpBlock.py
@@ -107,6 +107,26 @@ class TestPackUnpack(unittest.TestCase):
self.assertEqual(0, rc)
+class TestReproducable(unittest.TestCase):
+
+ def setUp(self):
+ rc, out, err = runprog('/bin/rm', '-f', 'ORDER1', 'ORDER2')
+ self.assertEqual(0, rc)
+
+ def testReproduce(self):
+ """equivalent yaml files should produce identical bmpblocks"""
+ rc, out, err = runprog(prog, '-c', 'case_order1.yaml', 'ORDER1')
+ self.assertEqual(0, rc)
+ rc, out, err = runprog(prog, '-c', 'case_order2.yaml', 'ORDER2')
+ self.assertEqual(0, rc)
+ rc, out, err = runprog('/usr/bin/cmp', 'ORDER1', 'ORDER2')
+ self.assertEqual(0, rc)
+
+ def tearDown(self):
+ rc, out, err = runprog('/bin/rm', '-f', 'ORDER1', 'ORDER2')
+ self.assertEqual(0, rc)
+
+
# Run these tests
if __name__ == '__main__':
varname = 'BMPBLK'
« no previous file with comments | « no previous file | tests/bitmaps/case_order1.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698