xfstests: convert tests to use new results directory
[xfstests-dev.git] / tests / generic / 001
index b9997f3ed0621089cc38bca0b6be534a6684a7f4..4e8b114414e4cf5413c9c66874b379bc63d64f75 100755 (executable)
@@ -32,6 +32,9 @@
 #
 
 seq=`basename $0`
+seqres=$RESULT_DIR/$seq
+seqres=$RESULT_DIR/$seq
+seqres=$RESULT_DIR/$seq
 echo "QA output created by $seq"
 
 # get standard environment, filters and checks
@@ -189,7 +192,7 @@ _mark_iteration()
 #
 _chain()
 {
-    $AWK_PROG -v full_file=$here/$seq.full -v verify=$verify <$tmp.config '
+    $AWK_PROG -v full_file=$here/$seqres.full -v verify=$verify <$tmp.config '
 BEGIN  { nfile = 0 }
 /^\#/  { next }
        { file[nfile] = $1
@@ -237,7 +240,7 @@ END { srand('$iter')
            }
          }
        }' \
-       | tee -a $here/$seq.full | sh
+       | tee -a $here/$seqres.full | sh
 }
 
 _check()
@@ -291,7 +294,7 @@ _cleanup()
     fi
 }
 
-rm -f $here/$seq.full
+rm -f $here/$seqres.full
 status=0
 _cleanup
 status=1
@@ -305,7 +308,7 @@ _setup
 for iter in 1 2 3 4 5
 do
     echo -n "iter $iter chain ... "
-    echo "iter $iter" >> $here/$seq.full
+    echo "iter $iter" >> $here/$seqres.full
     _chain
     _check
     if [ -f $tmp.bad ]