u-boot/test/py/tests
Lukasz Majewski 8eb3752446 tests: py: dfu: Add functionality to set different u-boot's dfu env variable
By default (on almost all systems) the dfu env variable, which defines
available alt settings, is named as "dfu_alt_info".

However on some platforms (i.e. Odroid XU3), the 'dfu_alt_info' is concatenated
from other variables - namely 'dfu_alt_boot' and 'dfu_alt_system' at run time
(when one types 'dfu 0 mmc 0' for first time).

'dfu_alt_boot' describes alt settings which depend on boot medium - for example
boot loader's LBA sectors which are different on eMMC and SD card because of e.g.
MBR/GPT.

'dfu_alt_system' describes board agnostic alt settings - like rootfs, kernel.
On such system we can only append/modify this env variable.

Because of the above, we must have way to modify other than "dfu_ale_info"
variable to perform tests.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
---
Changes for v3:
- None

Changes for v2:
- Rewrite of "alt_info_env_name" variable description
- Use of get() method on python's dictionary to easily obtain default
  value
2016-04-25 17:56:30 +02:00
..
test_000_version.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_dfu.py tests: py: dfu: Add functionality to set different u-boot's dfu env variable 2016-04-25 17:56:30 +02:00
test_env.py test/py: fix a couple typos in comments 2016-01-28 21:01:24 -07:00
test_help.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_hush_if_test.py test/py: skip tests that require large CONFIG_SYS_MAXARGS 2016-02-26 08:42:12 -05:00
test_md.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_net.py test/py: Add support for loading image via tftp to specified location 2016-04-11 20:48:22 -04:00
test_sandbox_exit.py test/py: use " for docstrings 2016-01-28 21:01:24 -07:00
test_shell_basics.py test/py: Quote consistency 2016-01-28 21:01:24 -07:00
test_sleep.py test/py: support running sandbox under gdbserver 2016-02-08 10:22:39 -05: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