Fixed usage of backtick that broke in a previous commit.
commit that broke it: 802baf489f
This commit is contained in:
parent
fdb791a421
commit
50cef78346
|
@ -86,7 +86,7 @@ get_test_params () {
|
|||
return 1
|
||||
fi
|
||||
|
||||
local p=\`expr index "$line" \\ \`
|
||||
local p=`expr index "$line" \ `
|
||||
if [ $p -ne 0 ]
|
||||
then
|
||||
(( p-- ))
|
||||
|
@ -208,15 +208,15 @@ compare_files () {
|
|||
if [ -e "$1" ]
|
||||
# First file exists
|
||||
then
|
||||
local md_file1=\`md5sum $1\`
|
||||
local md_file1=`md5sum $1`
|
||||
if [ -e "$2" ]
|
||||
then
|
||||
# Second file exists
|
||||
local md_file2=\`md5sum $2\`
|
||||
local md_file2=`md5sum $2`
|
||||
|
||||
# Get md5 of both files
|
||||
local md1=\`echo "$md_file1" | cut -d ' ' -f1\`
|
||||
local md2=\`echo "$md_file2" | cut -d ' ' -f1\`
|
||||
local md1=`echo "$md_file1" | cut -d ' ' -f1`
|
||||
local md2=`echo "$md_file2" | cut -d ' ' -f1`
|
||||
|
||||
# Increase counter of comparisons
|
||||
(( ncomp++ ))
|
||||
|
@ -227,7 +227,7 @@ compare_files () {
|
|||
if [ $comp_unavail -eq 0 ]
|
||||
then
|
||||
# Create diff-file with 'comp_' prefix.
|
||||
local name=\`basename "$1"\`
|
||||
local name=`basename "$1"`
|
||||
compare "$1" "$2" "$_dest_dir"/comp_"$name"
|
||||
else
|
||||
echo "$name does not match."
|
||||
|
@ -252,7 +252,7 @@ process_compare () {
|
|||
local files_list=( "$@" )
|
||||
for line in "${files_list[@]}"
|
||||
do
|
||||
local name=\`basename "$line"\`
|
||||
local name=`basename "$line"`
|
||||
DEBUG echo "comparing $name"
|
||||
compare_files "$_orig_dir"/"$name" "$_dest_dir"/"$name"
|
||||
done
|
||||
|
@ -288,7 +288,7 @@ do_compare () {
|
|||
for test_name in $*
|
||||
do
|
||||
rm "$_dest_dir"/comp_"$test_name"_[0-9]*.png &> /dev/null
|
||||
files_list=( \`ls "$_dest_dir"/"$test_name"_[0-9]*.png\` )
|
||||
files_list=( `ls "$_dest_dir"/"$test_name"_[0-9]*.png` )
|
||||
process_compare "${files_list[@]}"
|
||||
done
|
||||
|
||||
|
@ -562,7 +562,7 @@ then
|
|||
ls fail_*.txt &> /dev/null
|
||||
if [ "$?" -eq 0 ]
|
||||
then
|
||||
_n_tests_failed=\`ls fail_*.txt -1 | wc -l\`
|
||||
_n_tests_failed=`ls fail_*.txt -1 | wc -l`
|
||||
|
||||
if [ "$_n_tests_failed" ]
|
||||
then
|
||||
|
|
Loading…
Reference in New Issue