tests: py: dfu: Provide functionality to set test and dummy files alt settings
authorLukasz Majewski <l.majewski@samsung.com>
Wed, 20 Apr 2016 08:57:08 +0000 (10:57 +0200)
committerMarek Vasut <marex@denx.de>
Mon, 25 Apr 2016 15:56:30 +0000 (17:56 +0200)
commitf3a87f5b79a8f1957753131b09b539027913c731
tree6d5f47c16003eb8c8dd83daf077edb5fee8321b5
parent8eb37524468efa6f90dd00862aeaabe934557a5a
tests: py: dfu: Provide functionality to set test and dummy files alt settings

After concatenation of "dfu_alt_info" variable from "dfu_alt_boot" and
"dfu_alt_system" it may happen that test and dummy files alt settings
are different than default 0 and 1.

This patch provides the ability to set different values for them.

Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
---
Changes for v3:
- replace variables declarations with ones read from configuration file
- remove not necessary str() conversion at DFU host command generation

Changes for v2:
- generate "alt_info" automatically
- use file names as alt settings instead of numerical values
- extend in-code documentation
test/py/tests/test_dfu.py