1Transform expected failures is a tool to automate the process of transforming 2the error reported to the expected failure format. 3 4e.g. if the error is something like this: mismatch_method: 5android.service.euicc.EuiccService#onDownloadSubscription(int, 6android.telephony.euicc.DownloadableSubscription, boolean, boolean) Error: 7Non-compatible method found when looking for public abstract int 8onDownloadSubscription(int, android.telephony.euicc.DownloadableSubscription, 9boolean, boolean) - because modifier mismatch - description (public abstract), 10method (public) 11 12Then the expected failure would look something like this: 13"mismatch_method:android.service.euicc.EuiccService#onDownloadSubscription(int, 14android.telephony.euicc.DownloadableSubscription, boolean, boolean)", 15 16Example: ./cts/tests/signature/api-check/scripts/transform_expected_failures.py 17"`cat /path/to/failures.txt`" 18 19This will print the expected failure format It will look for these list of 20annotations "extra_field|missing_method|extra_class|missing_annotation" 21 22Optionally you can specify the list of expected failures types annotation 23separated by "|" Example: 24./cts/tests/signature/api-check/scripts/transform_expected_failures.py "`cat 25/path/to/failures.txt`" "missing_method|missing_annotation" 26