| Index: scripts/slave/recipe_modules/isolate/resources/compare_build_artifacts.py
|
| diff --git a/scripts/slave/recipe_modules/isolate/resources/compare_build_artifacts.py b/scripts/slave/recipe_modules/isolate/resources/compare_build_artifacts.py
|
| index 8001ba3b72b662876c35f124c6d2d4aac73edd02..298797ff72665b5d5f6a57b10ef37f77b59dd3e2 100644
|
| --- a/scripts/slave/recipe_modules/isolate/resources/compare_build_artifacts.py
|
| +++ b/scripts/slave/recipe_modules/isolate/resources/compare_build_artifacts.py
|
| @@ -86,9 +86,13 @@ def compare_build_artifacts(first_dir, second_dir):
|
| result = 'equal'
|
| else:
|
| file_len = os.stat(first_file).st_size
|
| - difference = ('different size' if result == -1 else
|
| - '%d out of %d bytes are different (%.2f%%)' %
|
| - (files_diffs, file_len, 100.0 * files_diffs / file_len))
|
| + difference = ''
|
| + if files_diffs == -1:
|
| + difference = 'different size: %d != %d' % (file_len,
|
| + os.stat(second_file).st_size)
|
| + else:
|
| + difference = '%d out of %d bytes are different (%.2f%%)' % (
|
| + files_diffs, file_len, 100.0 * files_diffs / file_len)
|
| result = 'DIFFERENT: %s' % difference
|
| res += 1
|
| print('%-*s: %s' % (max_filepath_len, f, result))
|
|
|