OSDN Git Service

Convert mkuserimg_mke2fs.sh to python
authorTianjie Xu <xunchang@google.com>
Thu, 9 Aug 2018 07:19:10 +0000 (00:19 -0700)
committerTianjie Xu <xunchang@google.com>
Wed, 15 Aug 2018 23:13:02 +0000 (16:13 -0700)
commit0b0256b9cdda8f90ad8e022f8a6be0faaf48daab
treea1db1579d0c504465da2236a3c2828cb3d7d2d02
parent5cf179122ecc8a9e3348362842802cc600466ca9
Convert mkuserimg_mke2fs.sh to python

The mkuserimg_mke2fs.sh was a shell script, which expects all the
arguments in order. This cl changes the script to python which leverages
python's argumentparser and unittest modules.

The script usage is unchanged; and this tool will be packed into the
otatools.zip in the follow up cls. Then we'll change the caller site
gradually; and remove the old shell script after that.

Bug: 112555072
Bug: 63866463
Test: run unit tests & build a userdata image
Change-Id: Ie6b687da3de31a3481363f01d2b5c12df91ca5ce
ext4_utils/Android.bp
ext4_utils/mkuserimg_mke2fs.py [new file with mode: 0644]
ext4_utils/test_mkuserimg_mke2fs.py [new file with mode: 0644]