tests: helpers: teach generate_test_files to return mapped areas
authorArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 27 Nov 2012 13:19:33 +0000 (15:19 +0200)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Tue, 27 Nov 2012 13:25:04 +0000 (15:25 +0200)
commitad7f0dd09a3d3f8fe2fd2ebd29224879ebc5c0c4
treecb3df7cf5464a56f2b858f80789480357a4d4126
parent335e2417ac7410f3725ac360f673525d04854c17
tests: helpers: teach generate_test_files to return mapped areas

This is a preparation to the Fiemap test. In the Fiemap module we have 2
functions: get_mapped_ranges() and get_unmapped_ranges(). And to test both of
them it is convenient to have 2 lists from the
'tests.helpers.generate_test_files()' function: mapped list and unmapped list.

Thus, teach 'tests.helpers.generate_test_files()' to also generate the list of
mapped areas, not only the holes.

Change-Id: Id000ba0b278ccceb821f540755cdd94165eeecc9
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
tests/helpers.py
tests/test_api_base.py