forked from Mirror/pmbootstrap
pmb: add -f (force) parameter to bootimg_analyze
We are analyzing the `boot.img` with `file` before we send it to `unpackbootimg`. File does not recognize all kinds of `boot.img` files, which `unpackbootimg` can extract, so we need a way to skip this check. Details: * Add `-f` parameter, continues extraction with a warning if the file seems to be invalid * Tell the user that `-f` can be used if the `boot.img` is invalid and it's not specified * Consistent spelling of `boot.img` instead of `bootimg` in messages Fixes #1608
This commit is contained in:
parent
0aa125e45c
commit
d4f4ea8488
3 changed files with 19 additions and 6 deletions
|
@ -56,7 +56,7 @@ def test_bootimg_kernel(args):
|
|||
def test_bootimg_invalid_file(args):
|
||||
with pytest.raises(RuntimeError) as e:
|
||||
pmb.parse.bootimg(args, __file__)
|
||||
assert "File is not an Android bootimg" in str(e.value)
|
||||
assert "File is not an Android boot.img" in str(e.value)
|
||||
|
||||
|
||||
def test_bootimg_normal(args):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue