mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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>
This commit is contained in:
committed by
Dave Chinner
parent
78d86b996c
commit
710281f260
+2
-1
@@ -29,7 +29,6 @@ seqres=$RESULT_DIR/$seq
|
||||
echo "QA output created by $seq"
|
||||
|
||||
here=`pwd`
|
||||
testfile=$TEST_DIR/testfile.$seq
|
||||
status=1 # failure is the default!
|
||||
trap "_cleanup; exit \$status" 0 1 2 3 15
|
||||
|
||||
@@ -47,6 +46,8 @@ _cleanup()
|
||||
_supported_fs generic
|
||||
_supported_os IRIX Linux
|
||||
|
||||
testfile=$TEST_DIR/testfile.$seq
|
||||
|
||||
echo "Silence is golden"
|
||||
|
||||
$here/src/t_truncate_cmtime $testfile 2>&1
|
||||
|
||||
Reference in New Issue
Block a user