From e7eb8f7445c120e8e871ac4689cd366ccda55829 Mon Sep 17 00:00:00 2001 From: Wei Li Date: Wed, 6 Sep 2023 18:15:23 -0700 Subject: [PATCH] Remove the diff resolved in aosp/q/topic:"install_symlink" Bug: 272358980 Test: build/soong/tests/sbom_test.sh Change-Id: I065826d59f4bd4b4abc20aa5010d362b30fb6b99 --- tests/sbom_test.sh | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/tests/sbom_test.sh b/tests/sbom_test.sh index 9de9b97ff..73fbeabbd 100755 --- a/tests/sbom_test.sh +++ b/tests/sbom_test.sh @@ -47,13 +47,10 @@ function run_soong { } function diff_files { - file_list_file="$1"; shift - files_in_spdx_file="$1"; shift - partition_name="$1"; shift - exclude= - if [ -v 'diff_excludes[$partition_name]' ]; then - exclude=${diff_excludes[$partition_name]} - fi + local file_list_file="$1"; shift + local files_in_spdx_file="$1"; shift + local partition_name="$1"; shift + local exclude="$1"; shift diff "$file_list_file" "$files_in_spdx_file" $exclude if [ $? != "0" ]; then @@ -84,9 +81,6 @@ function test_sbom_aosp_cf_x86_64_phone { dump_erofs=$out_dir/host/linux-x86/bin/dump.erofs lz4=$out_dir/host/linux-x86/bin/lz4 - declare -A diff_excludes - diff_excludes[system]="-I /system/bin/hwservicemanager" - # Example output of dump.erofs is as below, and the data used in the test start # at line 11. Column 1 is inode id, column 2 is inode type and column 3 is name. # Each line is captured in variable "entry", awk is used to get type and name. @@ -158,7 +152,7 @@ function test_sbom_aosp_cf_x86_64_phone { sort -n -o "$files_in_spdx_file" "$files_in_spdx_file" echo ============ Diffing files in $f and SBOM - diff_files "$file_list_file" "$files_in_spdx_file" "$partition_name" + diff_files "$file_list_file" "$files_in_spdx_file" "$partition_name" "" done RAMDISK_IMAGES="$product_out/ramdisk.img" @@ -176,7 +170,7 @@ function test_sbom_aosp_cf_x86_64_phone { grep "FileName: /${partition_name}/" $product_out/sbom.spdx | sed 's/^FileName: //' | sort -n > "$files_in_spdx_file" echo ============ Diffing files in $f and SBOM - diff_files "$file_list_file" "$files_in_spdx_file" "$partition_name" + diff_files "$file_list_file" "$files_in_spdx_file" "$partition_name" "" done verify_package_verification_code "$product_out/sbom.spdx"