From 237f317eec6f3f2578aa80fe534977e2466ba3db Mon Sep 17 00:00:00 2001 From: Hu Zhenyu Date: Mon, 3 Oct 2022 20:13:35 +0800 Subject: [PATCH] tests: Add the test case of GY271 on I2C0 of it8xxx2_evb Add the alias of GY271 in it8xxx2_evb.overlay. Modify the testcase.yaml, as the GY271 is magnetic sensor, not accelerometer and remove the harness. Signed-off-by: Hu Zhenyu --- tests/drivers/i2c/i2c_api/boards/it8xxx2_evb.overlay | 5 +++++ tests/drivers/i2c/i2c_api/testcase.yaml | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 tests/drivers/i2c/i2c_api/boards/it8xxx2_evb.overlay diff --git a/tests/drivers/i2c/i2c_api/boards/it8xxx2_evb.overlay b/tests/drivers/i2c/i2c_api/boards/it8xxx2_evb.overlay new file mode 100644 index 00000000000..9af1db72b4d --- /dev/null +++ b/tests/drivers/i2c/i2c_api/boards/it8xxx2_evb.overlay @@ -0,0 +1,5 @@ +/ { + aliases { + gy271 = &i2c0; + }; +}; diff --git a/tests/drivers/i2c/i2c_api/testcase.yaml b/tests/drivers/i2c/i2c_api/testcase.yaml index 94e2f2b952a..587549fbb17 100644 --- a/tests/drivers/i2c/i2c_api/testcase.yaml +++ b/tests/drivers/i2c/i2c_api/testcase.yaml @@ -2,5 +2,4 @@ tests: drivers.i2c.api: depends_on: i2c tags: drivers i2c - harness: sensor - filter: dt_alias_exists("accel-0") + filter: dt_alias_exists("gy271")