Whamcloud - gitweb
LU-8950 tests: standardize file creation in sanity-hsm 04/24704/8
authorQuentin Bouget <quentin.bouget@cea.fr>
Thu, 8 Dec 2016 15:30:44 +0000 (16:30 +0100)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 29 Nov 2017 05:59:25 +0000 (05:59 +0000)
commit69c181ab35824167c6e3b7f15a3a077dd8c9896c
treee284a3f6f11b59c7e55f6152b567961463b8ef4c
parent7cd12b5e4867b7eb36b691f14443324195573ddf
LU-8950 tests: standardize file creation in sanity-hsm

sanity-hsm exposed several functions to create files:
 - make_small()
 - make_small_sync()
 - make_archive()

This patch renames all these functions (respectively):
 - create_small_file()
 - create_small_sync_file()
 - create_archive()

And adds a new one: create_empty_file() which creates an empty file

The actual file_creation is now abstracted in the create_file()
function used by all the aforementionned functions.

Test-Parameters: trivial testlist=sanity-hsm
Signed-off-by: Quentin Bouget <quentin.bouget@cea.fr>
Change-Id: Ib4267827eb2e31ed396da1d711419f45f9e0ef16
Reviewed-on: https://review.whamcloud.com/24704
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Nunez <james.a.nunez@intel.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/tests/sanity-hsm.sh