The tests create many temporary files and run FIEMAP on them. However, in
Fedora 18 the '/tmp' is tmpfs which does not support FIEMAP, so 'nosetests'
fails. Let's use the current directory for the tests instead.
Change-Id: I2cc2d402fd15517e043e38188d3046876a11cbec
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
# Delete all the test-related temporary files automatically
delete = True
- # Create all the test-related temporary files in the default directory
- # (usually /tmp).
- directory = None
+ # Create all the test-related temporary files in current directory (the
+ # default "/tmp" will not work in case of tmpfs which does not support
+ # FIEMAP).
+ directory = '.'
iterator = tests.helpers.generate_test_files(delete = delete,
directory = directory)
# Delete all the test-related temporary files automatically
delete = True
- # Create all the test-related temporary files in the default directory
- # (usually /tmp).
- directory = None
+ # Create all the test-related temporary files in current directory (the
+ # default "/tmp" will not work in case of tmpfs which does not support
+ # FIEMAP).
+ directory = '.'
# Maximum size of the random files used in this test
max_size = 16 * 1024 * 1024