]> git.baikalelectronics.ru Git - uboot.git/commit
test/py: regenerate persistent GPT image if code changes
authorStephen Warren <swarren@nvidia.com>
Fri, 27 Oct 2017 00:23:35 +0000 (18:23 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 6 Nov 2017 14:59:00 +0000 (09:59 -0500)
commit172bd22ac71d4dae67cdfdfa4bfe1b2b611cb6ef
tree9cb83d2c42e4c2144af97e61749954a462d82489
parent93c347c8bcbfa4b06243182d647f3ef85a588cad
test/py: regenerate persistent GPT image if code changes

test_gpt generates a persistent disk image which can be re-used across
multiple test runs. Currently, if the Python code that generates the disk
image change, the image is not regenerated, which could cause test
failures e.g. if a test was updated to expect some new partition name or
size, yet the persistent disk image contained the old name or size. This
change introduces functionality to regenerate the disk image if the
instructions to generate the image have changed.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
test/py/tests/test_gpt.py
test/py/u_boot_utils.py