rust: Add Recovery Snapshot Soong tests for rust.
Bug: 197866992 Test: m nothing Change-Id: I4b5401cf2ffa0dbcc6fea60f90bad4c47a9d5e6b
This commit is contained in:
@@ -763,3 +763,11 @@ func GetOutputPaths(ctx *android.TestContext, variant string, moduleNames []stri
|
||||
}
|
||||
return paths
|
||||
}
|
||||
|
||||
func AssertExcludeFromRecoverySnapshotIs(t *testing.T, ctx *android.TestContext, name string, expected bool, variant string) {
|
||||
t.Helper()
|
||||
m := ctx.ModuleForTests(name, variant).Module().(LinkableInterface)
|
||||
if m.ExcludeFromRecoverySnapshot() != expected {
|
||||
t.Errorf("expected %q ExcludeFromRecoverySnapshot to be %t", m.String(), expected)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user