Whamcloud - gitweb
LU-2524 test: Modify tdir to be single directory 23/8123/5
authorJames Nunez <james.a.nunez@intel.com>
Sat, 21 Dec 2013 03:13:19 +0000 (20:13 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 11 Jan 2014 02:24:23 +0000 (02:24 +0000)
commita98d44e0439ad5b20d0d7f273b29e6ea990312f0
tree3212bab844e72af2a76d28c8c7d8fb7a390e1eb5
parent33e35c0bf214c2565b8b0ce6b2235b9262aa1b54
LU-2524 test: Modify tdir to be single directory

Currently, the tdir variable is a directory with a subdirectory.
This requires the '-p' option when calling mkdir. We've made tdir
be a single directory so calls to mkdir and test_mkdir do not
require the '-p' option in most cases.

tdir was changed from d0.${TESTSUITE}/d${base} to
d${testnum}.${TESTSUITE} and tfile was changed from
f.${TESTSUITE}.${testnum} to f${testnum}.${TESTSUITE}. Now tdir and
tfile are consistent in their format and the call to remove files
and directories at the beginning of many test scripts will remove
these files and directories.

Once this patch lands, we can remove the "-p" option from many
of the calls to mkdir.

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Change-Id: Ib49d7102a49ff6b5f3ec539a5b2f2f5186231a04
Reviewed-on: http://review.whamcloud.com/8123
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
lustre/tests/test-framework.sh