aboutsummaryrefslogtreecommitdiff
path: root/filesystem/filesystem_test.go
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2023-01-10 05:29:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2023-01-10 05:29:27 +0000
commit0513c552461e0e463f58122d367b6c0879da896a (patch)
treee4c04856992ae7e0af0df1de0a53dff5d65f5d4c /filesystem/filesystem_test.go
parent205d1489fb42694129fed0ba67f886b92935b97b (diff)
parentbc675eb9fa318f18ef21e38fca8a9cdd55e05eae (diff)
Merge "Revert "[avb_footer] Add avb_gen_vbmeta_image to generate vbmeta...""
Diffstat (limited to 'filesystem/filesystem_test.go')
-rw-r--r--filesystem/filesystem_test.go29
1 files changed, 0 insertions, 29 deletions
diff --git a/filesystem/filesystem_test.go b/filesystem/filesystem_test.go
index 444ffd0aa..9bfcc3d6a 100644
--- a/filesystem/filesystem_test.go
+++ b/filesystem/filesystem_test.go
@@ -126,34 +126,8 @@ func TestFileSystemGathersItemsOnlyInSystemPartition(t *testing.T) {
android.AssertDeepEquals(t, "entries should have foo only", []string{"components/foo"}, module.entries)
}
-func TestAvbGenVbmetaImage(t *testing.T) {
- result := fixture.RunTestWithBp(t, `
- avb_gen_vbmeta_image {
- name: "input_hashdesc",
- src: "input.img",
- partition_name: "input_partition_name",
- salt: "2222",
- }`)
- cmd := result.ModuleForTests("input_hashdesc", "android_arm64_armv8-a").Rule("avbGenVbmetaImage").RuleParams.Command
- android.AssertStringDoesContain(t, "Can't find correct --partition_name argument",
- cmd, "--partition_name input_partition_name")
- android.AssertStringDoesContain(t, "Can't find --do_not_append_vbmeta_image",
- cmd, "--do_not_append_vbmeta_image")
- android.AssertStringDoesContain(t, "Can't find --output_vbmeta_image",
- cmd, "--output_vbmeta_image ")
- android.AssertStringDoesContain(t, "Can't find --salt argument",
- cmd, "--salt 2222")
-}
-
func TestAvbAddHashFooter(t *testing.T) {
result := fixture.RunTestWithBp(t, `
- avb_gen_vbmeta_image {
- name: "input_hashdesc",
- src: "input.img",
- partition_name: "input",
- salt: "2222",
- }
-
avb_add_hash_footer {
name: "myfooter",
src: "input.img",
@@ -171,7 +145,6 @@ func TestAvbAddHashFooter(t *testing.T) {
file: "value_file",
},
],
- include_descriptors_from_images: ["input_hashdesc"],
}
`)
cmd := result.ModuleForTests("myfooter", "android_arm64_armv8-a").Rule("avbAddHashFooter").RuleParams.Command
@@ -185,6 +158,4 @@ func TestAvbAddHashFooter(t *testing.T) {
cmd, "--prop 'prop1:value1'")
android.AssertStringDoesContain(t, "Can't find --prop_from_file argument",
cmd, "--prop_from_file 'prop2:value_file'")
- android.AssertStringDoesContain(t, "Can't find --include_descriptors_from_image",
- cmd, "--include_descriptors_from_image ")
}