Bug 1392262 - [update verification] verify.sh: Print out what locale failed r=nthomas
MozReview-Commit-ID: 7OplUxzXwUo
--- a/release/updates/verify.sh
+++ b/release/updates/verify.sh
@@ -128,17 +128,17 @@ do
"${to_build_id}" "${to_app_version}" "${to_display_version}"
err=$?
else
download_mars "${aus_server}/update/3/$product/$release/$build_id/$platform/$locale/$channel/default/default/default/update.xml?force=1" $patch_type 0 \
"${to_build_id}" "${to_app_version}" "${to_display_version}"
err=$?
fi
if [ "$err" != "0" ]; then
- echo "FAIL: download_mars returned non-zero exit code: $err"
+ echo "FAIL: [$release $locale $patch_type] download_mars returned non-zero exit code: $err"
continue
fi
else
update_path="$product/$release/$build_id/$platform/$locale/$channel/default/default/default"
mkdir -p updates/$update_path/complete
mkdir -p updates/$update_path/partial
$retry wget --no-check-certificate -q -O $patch_type updates/$update_path/$patch_type/update.xml "${aus_server}/update/3/$update_path/update.xml?force=1"
@@ -149,41 +149,41 @@ do
then
continue
fi
from_path=`echo $from | sed "s/%locale%/${locale}/"`
to_path=`echo $to | sed "s/%locale%/${locale}/"`
download_builds "${ftp_server_from}${from_path}" "${ftp_server_to}${to_path}"
err=$?
if [ "$err" != "0" ]; then
- echo "FAIL: download_builds returned non-zero exit code: $err"
+ echo "FAIL: [$release $locale $patch_type] download_builds returned non-zero exit code: $err"
continue
fi
source_file=`basename "$from_path"`
target_file=`basename "$to_path"`
check_updates "$platform" "downloads/$source_file" "downloads/$target_file" $locale $use_old_updater $mar_channel_IDs
err=$?
if [ "$err" == "0" ]; then
continue
elif [ "$err" == "1" ]; then
- echo "FAIL: check_updates returned failure for $platform downloads/$source_file vs. downloads/$target_file: $err"
+ echo "FAIL: [$release $locale $patch_type] check_updates returned failure for $platform downloads/$source_file vs. downloads/$target_file: $err"
elif [ "$err" == "2" ]; then
- echo "WARN: check_updates returned warning for $platform downloads/$source_file vs. downloads/$target_file: $err"
+ echo "WARN: [$release $locale $patch_type] check_updates returned warning for $platform downloads/$source_file vs. downloads/$target_file: $err"
else
- echo "FAIL: check_updates returned unknown error for $platform downloads/$source_file vs. downloads/$target_file: $err"
+ echo "FAIL: [$release $locale $patch_type] check_updates returned unknown error for $platform downloads/$source_file vs. downloads/$target_file: $err"
fi
fi
done
if [ -f update/partial.size ] && [ -f update/complete.size ]; then
partial_size=`cat update/partial.size`
complete_size=`cat update/complete.size`
if [ $partial_size -gt $complete_size ]; then
- echo "FAIL: partial updates are larger than complete updates"
+ echo "FAIL: [$release $locale $patch_type] partial updates are larger than complete updates"
elif [ $partial_size -eq $complete_size ]; then
- echo "WARN: partial updates are the same size as complete updates, this should only happen for major updates"
+ echo "WARN: [$release $locale $patch_type] partial updates are the same size as complete updates, this should only happen for major updates"
else
- echo "SUCCESS: partial updates are smaller than complete updates, all is well in the universe"
+ echo "SUCCESS: [$release $locale $patch_type] partial updates are smaller than complete updates, all is well in the universe"
fi
fi
done
done < $config_file
clear_cache