Move up the $test variable definition, together with the other
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 19 Oct 2009 21:59:17 +0000 (21:59 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 19 Oct 2009 21:59:17 +0000 (21:59 +0000)
definitions of variables defined using the positional arguments of the
script.

Should ease the split of the file.

Originally committed as revision 20322 to svn://svn.ffmpeg.org/ffmpeg/trunk

tests/codec-regression.sh

index 933bb52..870ec46 100755 (executable)
@@ -7,6 +7,7 @@
 
 set -e
 
+test="${1#regtest-}"
 test_ref=$2
 raw_src_dir=$3
 outfile_prefix=$4
@@ -16,7 +17,6 @@ target_path=$6
 datadir="./tests/data"
 target_datadir="${target_path}/${datadir}"
 
-test="${1#regtest-}"
 this="$test.$test_ref"
 logfile="$datadir/$this.regression"
 outfile="$datadir/${outfile_prefix}-"