Disallow non-existent paths in sdk package
Test behavior was changed a while ago so that tests by default ignore non-existent source paths (unless they explicitly check for/rely on them). Prior to that CheckSnapshot() could detect when files were missing from the snapshot but it no longer can. This change disallows non-existent source files in all the sdk tests which means that they are disallowed when processing the snapshots as they use the same preparers as were used to process the sources. This caused a test failure which has been temporarily ignored and has a TODO and bug associated with it. Bug: 183184375 Test: m nothing Change-Id: I969d8515d20ef5ae515f2b5f93d8ed4e4f8ede75
This commit is contained in:
@@ -166,6 +166,15 @@ const (
|
||||
recoveryVariant = "android_recovery_arm64_armv8-a_shared"
|
||||
)
|
||||
|
||||
// Test that the PrepareForTestWithCcDefaultModules provides all the files that it uses by
|
||||
// running it in a fixture that requires all source files to exist.
|
||||
func TestPrepareForTestWithCcDefaultModules(t *testing.T) {
|
||||
android.GroupFixturePreparers(
|
||||
PrepareForTestWithCcDefaultModules,
|
||||
android.PrepareForTestDisallowNonExistentPaths,
|
||||
).RunTest(t)
|
||||
}
|
||||
|
||||
func TestFuchsiaDeps(t *testing.T) {
|
||||
t.Helper()
|
||||
|
||||
|
Reference in New Issue
Block a user