diff options
author | Bill Richardson <wfrichar@chromium.org> | 2011-02-10 19:13:10 -0800 |
---|---|---|
committer | Bill Richardson <wfrichar@chromium.org> | 2011-02-10 19:13:10 -0800 |
commit | 794d4d44db984759466b5b6779833e2d5281e527 (patch) | |
tree | a2a9b8a4fc19276178dcac8889bbeb386a2b2aad /tests | |
parent | 31b206f218189d2ecb4b12cf05139bb423877a94 (diff) | |
download | vboot-794d4d44db984759466b5b6779833e2d5281e527.tar.gz |
New commandline args are clearer, and prepare for compression.
BUG=chromium-os:11488
TEST=none
Change-Id: I6ee493037da5746d2db6e840ac6590dd12f37cfe
Review URL: http://codereview.chromium.org/6482001
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/bitmaps/TestBmpBlock.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tests/bitmaps/TestBmpBlock.py b/tests/bitmaps/TestBmpBlock.py index 9abe72df..77ef4199 100755 --- a/tests/bitmaps/TestBmpBlock.py +++ b/tests/bitmaps/TestBmpBlock.py @@ -1,4 +1,8 @@ #!/usr/bin/python -tt +# +# Copyright (c) 2011 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. """Unit tests for bmpblk_utility. """ @@ -21,17 +25,18 @@ class TestBmpBlock(unittest.TestCase): """Running with no args should print usage and fail.""" rc, out, err = runprog(prog) self.assertNotEqual(0, rc) - self.assertTrue(out.count("Usage:")) + self.assertTrue(err.count("missing BMPBLOCK name")) + self.assertTrue(out.count("bmpblk_utility")) def testMissingBmp(self): """Missing a bmp specified in the yaml is an error.""" - rc, out, err = runprog(prog, '-c', '-C', 'case_nobmp.yaml', 'FOO') + rc, out, err = runprog(prog, '-c', 'case_nobmp.yaml', 'FOO') self.assertNotEqual(0, rc) self.assertTrue(err.count("No such file or directory")) def testInvalidBmp(self): """A .bmp file that isn't really a BMP should fail.""" - rc, out, err = runprog(prog, '-c', '-C', 'case_badbmp.yaml', 'FOO') + rc, out, err = runprog(prog, '-c', 'case_badbmp.yaml', 'FOO') self.assertNotEqual(0, rc) self.assertTrue(err.count("Unsupported image format")) |