Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions tests/drivers/uart/uart_basic_api/overlay-usb.conf

This file was deleted.

3 changes: 1 addition & 2 deletions tests/drivers/uart/uart_basic_api/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* @}
*/

#include <usb/usb_device.h>
#include "test_uart.h"

#ifdef CONFIG_SHELL
Expand Down Expand Up @@ -63,7 +62,7 @@ void test_main(void)
uint32_t dtr = 0;

dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_console));
if (!device_is_ready(dev) || usb_enable(NULL)) {
if (!device_is_ready(dev)) {
return;
}

Expand Down
3 changes: 1 addition & 2 deletions tests/drivers/uart/uart_basic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ tests:
filter: CONFIG_UART_CONSOLE
harness: keyboard
drivers.uart.cdc_acm:
extra_args: OVERLAY_CONFIG="overlay-usb.conf"
DTC_OVERLAY_FILE="usb.overlay"
extra_args: SHIELD="cdc_acm_console"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question here, I like the general direction, but I'd like to know how tests will work with boards that already declare usb for value of zephyr,console chosen.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK last property definition wins. With this PR, there are no more boards that define chosen property with reference to "zephyr,cdc-acm-uart" compatible node. But it works even if it is the case and shield is used, then there would be two CDC ACM devices, one of them would be used by the test.

tags: drivers usb
filter: CONFIG_UART_CONSOLE
depends_on: usb_device
Expand Down
18 changes: 0 additions & 18 deletions tests/drivers/uart/uart_basic_api/usb.overlay

This file was deleted.