diff options
author | Dave Chinner <dchinner@redhat.com> | 2013-03-15 12:28:02 +0000 |
---|---|---|
committer | Rich Johnston <rjohnston@sgi.com> | 2013-03-26 21:38:47 -0500 |
commit | 1d5d46db80370172750ab0c45ead3991c53678ef (patch) | |
tree | 7b7ad99949a06f839dfc0fa9c1d94c64aed26e05 /tests/xfs/202 | |
parent | 1686f9abfceabd97b1ee52f6bd3060b24f2537d6 (diff) |
xfstests: convert tests to use new results directory
Essentially the change is simply this. Converting:
... >> $seq.????
to:
.... >> $RESULT_DIR/$seq.????
so that output files are directed to the defined output directory.
sed to the rescue:
$ sed -i -e '/^seq=.*$/a seqres=$RESULT_DIR/$seq' -e 's/seq.full/seqres.full/' tests/*/*
will do most of the work automatically.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Phil White <pwhite@sgi.com>
[rjohnston@sgi.com reworked for TOT changes]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Diffstat (limited to 'tests/xfs/202')
-rwxr-xr-x | tests/xfs/202 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/xfs/202 b/tests/xfs/202 index 27f9e677..6c82ac00 100755 --- a/tests/xfs/202 +++ b/tests/xfs/202 @@ -22,6 +22,9 @@ # seq=`basename $0` +seqres=$RESULT_DIR/$seq +seqres=$RESULT_DIR/$seq +seqres=$RESULT_DIR/$seq echo "QA output created by $seq" here=`pwd` @@ -56,5 +59,5 @@ _scratch_xfs_repair -o force_geometry 2>&1 | _filter_repair # success, all done echo "*** done" -rm -f $seq.full +rm -f $seqres.full status=0 |