The UART testing (and potentially SPI if a target uses combined UART/SPI peripherals, such as EFM32) lacks a guard against trying to test the same UART peripheral as the one which is driving the communication with the host (to feed back the test results).
I think you'd want to introduce something like pinmap_restricted_peripherals, which guards against reconfiguring test-system-critical peripherals, such as the GreenTea communication channel, or the RTOS timebase.
CC @c1728p9
[ ] Question
[ ] Enhancement
[X] Bug
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-1428
@fkjagodzinski can you look into fixing this?