generic/313: initialise TEST_DIR before use
authorBrian Foster <bfoster@redhat.com>
Sun, 2 Feb 2014 23:06:42 +0000 (10:06 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 2 Feb 2014 23:06:42 +0000 (10:06 +1100)
commit710281f2606f75ee1b3090fe2c46f20878362712
tree2e11383dc01c155195ec5d087f3cc3aeef479922
parent78d86b996c9c431542fdbac11fa08764b16ceb7d
generic/313: initialise TEST_DIR before use

The 'testfile' environment variable is initialized before the
xfstests environment is included into generic/313. TEST_DIR is not
defined at this point and causes the test to operate on the root.
Move the testfile initialization down after the general environment
is sourced.

Signed-off-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/generic/313