releasetools: Add tests for VerityImageBuilder.

`testdata/verity_mincrypt` is generated with the following command.
  $ generate_verity_key \
        -convert testdata/verity.x509.pem \
        testdata/verity_mincrypt

Test: python -m unittest test_verity_utils
Change-Id: I3f2f0cd89da0fd5d2420e0e2b09761cc77f893c5
This commit is contained in:
Tao Bao
2018-10-17 22:53:54 -07:00
parent 7549e5e919
commit 4a0d5134e1
3 changed files with 156 additions and 12 deletions

View File

@@ -299,7 +299,7 @@ class Version1VerityImageBuilder(VerityImageBuilder):
"""Creates an image that is verifiable using dm-verity.
Args:
out_file: the location to write the verifiable image at
out_file: the output image.
Returns:
AssertionError: On invalid partition sizes.