platform_build/tools/releasetools
Tao Bao f3fc62c8a0 releasetools: Fix the error message.
This avoids showing a message as below:

raise BuildImageError("Failed to get tune2fs usage:\n{}".format(output))
UnboundLocalError: local variable 'output' referenced before assignment

The `output` won't be set under such a case, which unfortunately hides
the real cause. This CL addresses the issue by letting it throw
implicitly, which contains the command and outputs.

Test: `m dist`
Test: `python -m unittest test_build_image`
Change-Id: Icf015bab8869d150516246ed73552f6502127cdf
2018-10-25 12:29:44 -07:00
..
testdata releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
add_img_to_target_files
add_img_to_target_files.py releasetools: Include descriptor of vbmeta_system.img in vbmeta.img. 2018-10-22 15:27:54 -07:00
blockimgdiff.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
build_image.py releasetools: Fix the error message. 2018-10-25 12:29:44 -07:00
check_ota_package_signature.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
check_target_files_signatures Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
check_target_files_signatures.py releasetools: Call Cleanup() in check_target_files_signatures.py. 2018-03-01 10:12:39 -08:00
common.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
edify_generator.py releasetools: Track edify function API changes. 2018-08-29 11:53:19 -07:00
img_from_target_files
img_from_target_files.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
make_recovery_patch Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
make_recovery_patch.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
ota_from_target_files Fix build. 2015-09-15 07:50:10 +00:00
ota_from_target_files.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
ota_package_parser.py Add a script to parse an block-based ota package 2017-05-09 21:01:19 +00:00
OWNERS Add OWNERS in build/make 2017-06-21 16:09:56 -07:00
pylintrc releasetools: Make scripts pylint clean. 2018-07-19 10:39:05 -07:00
rangelib.py releasetools: RangeSet.monotonic is not an optional attribute. 2018-02-06 16:00:52 -08:00
sign_target_files_apks Make releasetools pylint clean. 2015-03-24 11:05:16 -07:00
sign_target_files_apks.py Install the ota keys under recovery as a zipfile 2018-10-22 14:47:15 -07:00
sparse_img.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00
target_files_diff.py target_files_diff: Fix the issue with file type change. 2016-04-25 18:35:20 +00:00
test_add_img_to_target_files.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_blockimgdiff.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_build_image.py build_image: improvements to right size for dynamic partitions 2018-10-23 15:14:00 -07:00
test_common.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_ota_from_target_files.py releasetools: Clean up the logging while calling external commands. 2018-10-15 12:01:42 -07:00
test_rangelib.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_sign_target_files_apks.py releasetools: Add a common base class for unittests. 2018-10-11 23:01:09 -07:00
test_utils.py releasetools: Log to stdout when running tests. 2018-10-18 15:05:49 -07:00
test_validate_target_files.py releasetools: Fix a broken test due to verity utils relocation. 2018-10-13 19:27:52 -07:00
test_verity_utils.py releasetools: Move verity related functions into verity_utils.py. 2018-10-12 12:09:34 -07:00
validate_target_files.py releasetools: Set default stdout and stderr in common.Run(). 2018-10-04 17:05:09 -07:00
verity_utils.py releasetools: Switch to Python logging. 2018-10-17 07:51:04 -07:00