Allow testResetPasswordWithToken to fail if executed out of order
If MixedManagedProfileOwnerTest#testResetPasswordWithToken is executed first,
reset password token will be disabled for user 0, causing failures to the same
tests for device owner and user owner. In this case, catch the failure and allow
the test to procceed.
Bug: 38246027
Test: execute the following CTS test in order
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedManagedProfileOwnerTest#testResetPasswordWithToken
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedProfileOwnerTest#testResetPasswordWithToken
cts-tradefed run cts-dev -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.MixedDeviceOwnerTest#testResetPasswordWithToken
Change-Id: Icabfa49eceb19250c7d034f2a3c3b40a8f318858
1 file changed