History log of /build/tools/releasetools/test_build_image.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d8a953d7ab027f7a612f52ee008e11177e02d7b2 03-Jan-2018 Tao Bao <tbao@google.com> releasetools: Move assertions into CheckHeadroom().

Assert the input arguments inside CheckHeadroom() function, and add
matching tests. Also use common.MakeTemp{File,Dir} in tests.

Test: `m dist`
Test: python -m unittest test_build_image
Change-Id: Ib45f24651af9591a9cfdd72aac3558f6c9a80f44
/build/make/tools/releasetools/test_build_image.py
d4349f2106342798ade21c3f3d855e307315e494 08-Dec-2017 Tao Bao <tbao@google.com> build_image: Factor out CheckHeadroom() and add tests.

The test is mostly trivial, but it ensures the result parsing from
actual calls to mke2fs.

Test: python -m unittest test_build_image
Test: `m dist` on aosp_marlin-userdebug (w/ and w/o defining
PRODUCT_SYSTEM_HEADROOM respectively).
Change-Id: I8b9964213950e76f6d7d5518414a1bab888b4706
/build/make/tools/releasetools/test_build_image.py