Whamcloud - gitweb
LU-2524 test: Code clean up for conf-sanity 30/10530/7
authorJames Nunez <james.a.nunez@intel.com>
Fri, 30 May 2014 19:20:21 +0000 (13:20 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 21 Nov 2014 16:15:54 +0000 (16:15 +0000)
commit648c73b50abdeeb8c6d646a7b743d748c84451d6
tree2ae90f716d9698c5d71a814152b4399643dcea95
parentbe56983d01670119ed88923cc9b5c336f4552302
LU-2524 test: Code clean up for conf-sanity

The patch modifying the tdir variable to a single directory
has landed; http://review.whamcloud.com/#/c/8123/. We can
now conduct miscellaneous cleanup including:

Remove the `-p` (parents) option from many calls to mkdir
Replace `lfs setstripe` with $SETSTRIPE
Replace `lfs getstripe` with $GETSTRIPE
Replace `lctl` with $LCTL
Added check for and call `error` and/or added error messages
for a variety of common functions.
Replace `…` with $(...)
Remove linefeed escape after |, ||, & and && operators.
Modify directory and file names to use $tdir and $tfile
Remove 'mkdir -p $MOUNT' when 'mount_client $MOUNT' is
called right before or after mkdir

Test-Parameters: alwaysuploadlogs \
envdefinitions=SLOW=yes testlist=conf-sanity

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: I94bd51ce2d2f225736e12c4f9ac1a86a3d8a23d8
Reviewed-on: http://review.whamcloud.com/10530
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Jian Yu <jian.yu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/tests/conf-sanity.sh