u-boot/test/py/tests
Stephen Warren 110ba62519 test/py: gpt: make use of infra-structure
Make various changes to the GPT test:

1) Reference the disk image using an absolute path in all cases. This
allows test/py to operate correctly if it's run from a directory other
than the root of the U-Boot source tree.

2) Store the disk image in the teswt/py persistent data directory. This
removes the need to re-generate it every time the tests are run.

3) Execute sgdisk using u_boot_utils.run_and_log() so that its output is
captured in the test log. This allows debugging any problems running it.

4) Make the disk image a test fixture. This removes the requirement to
always run all GPT tests, and run them in order. The current code doesn't
create the disk image if e.g. just test_gpt_uuid() is executed via the
test.py -k command-line option.

5) Use @pytest.mark.buildconfigspec for all feature dependencies, rather
than manually implementing some of them.

6) Make all tests depend on sandbox, since they use the sandbox-specific
host command.

Fixes: a2f422555f ("add pytests for 'gpt guid' command in sandbox")
Fixes: c5772188ed ("add pytests for 'gpt rename' and 'gpt swap'")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Tom Rini <trini@konsulko.com>
2017-09-15 22:33:41 -04:00
..
vboot test: Convert the vboot test to test/py 2016-07-14 18:22:40 -04:00
test_000_version.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_dfu.py tests: test_dfu.py: Add example udev rule for host_usb_dev_node 2017-07-22 15:36:16 -04:00
test_efi_loader.py travis: Add efi_loader grub2 test 2016-11-27 09:53:40 -05:00
test_env.py test: py: Add cmd_echo dependency 2017-05-22 07:29:55 -04:00
test_fit.py test: Move the FIT test into the correct place 2017-08-13 15:17:36 -04:00
test_gpt.py test/py: gpt: make use of infra-structure 2017-09-15 22:33:41 -04:00
test_help.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_hush_if_test.py test: py: hush: Add echo dependency 2017-06-05 14:13:02 -04:00
test_md.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_net.py tests: net: Offset downloads to 4MB 2016-11-26 15:50:52 -05:00
test_ofplatdata.py sandbox: Stop printing platdata at the start of SPL 2017-07-11 10:08:20 -06:00
test_sandbox_exit.py test/py: fix CONFIG_ tests 2016-07-08 12:47:58 -04:00
test_shell_basics.py test: py: Add cmd_echo dependency 2017-05-22 07:29:55 -04:00
test_sleep.py test/py/tests/test_sleep.py: Add check for CONFIG_CMD_MISC 2016-10-14 19:12:31 -04:00
test_ums.py test/py: Provide custom IDs when parametrizing tests 2016-01-28 21:01:24 -07:00
test_unknown_cmd.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_ut.py test/py: run all "ut" subtests 2016-02-15 20:58:26 +00:00
test_vboot.py test/py/tests/test_vboot.py: Add check that we boot the image 2016-09-22 11:34:58 -04:00