sample: /driver: 解决新增示例中的警告信息

2 job 于feature/samples/driver in 6 minute 和 3 second (queued for 2 second)
状态 作业 ID 名称 覆盖率
  Ztest
已失败 #70542
zgsz-02 generic
ztest_build_only

00:04:28

已失败 #70543
zgsz-03 with-device
ztest_device_test

00:06:02

 
名称 暂存 失败
已失败
ztest_build_only Ztest
$ rm -f ${CI_PROJECT_DIR}/release.sh
Uploading artifacts for failed job
Uploading artifacts...
/builds/zephyr/csk/twister-out/**/*.log: found 379 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.json: found 2 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.xml: found 3 matching artifact files and directories

Uploading artifacts as "archive" to coordinator... 201 Created
id=70542 responseStatus=201 Created token=VqyUGu4F
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1

已失败
ztest_device_test Ztest
INFO    - Run completed
Uploading artifacts for failed job
Uploading artifacts...
/builds/zephyr/csk/twister-out/**/*.log: found 218 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.json: found 2 matching artifact files and directories

/builds/zephyr/csk/twister-out/*.xml: found 3 matching artifact files and directories

Uploading artifacts as "archive" to coordinator... 201 Created
id=70543 responseStatus=201 Created token=JV3mcnfb
Cleaning up project directory and file based variables
ERROR: Job failed: exit code 1