Workaround for handling single device specific state in dump tests
- There's a DeviceProfile state that is dynamic on a specific device
class (based on a fw resource), this causes problems with the dump
tests which compare the device profile against static prior dumps.
For now, we can just update the expected dump based on the state
of the resource to ensure that the current device profile state on
this device matches. To do this, we also need to consolidate the
various duplicate methods to assert the current and golden dumps
match to have a common place to adjust the expected dump.
Bug: 315230497
Test: atest DeviceProfileDumpTest
Test: atest DeviceProfileAlternativeDisplaysDumpTest
Change-Id: I5130d330878757702af07e166a669cc76452b271
2 files changed