summaryrefslogtreecommitdiff
path: root/docs/zephyr
diff options
context:
space:
mode:
authorTristan Honscheid <honscheid@google.com>2023-02-01 11:48:39 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-02-01 20:08:57 +0000
commit6c1a3103ebace826596e94f5bbcff9f9597886fa (patch)
treea4ea7d522883ac0fb3a5cb01a68adac26d87e41f /docs/zephyr
parenta634477861c3fb0bb7411023d9657a121ccbbc89 (diff)
downloadchrome-ec-6c1a3103ebace826596e94f5bbcff9f9597886fa.tar.gz
docs: Update test doc with new twister test path convention
Twister changed up how the `-s` parameter works, so update the docs with new instructions on how to use it. BUG=None BRANCH=None TEST=Tested command locally Change-Id: I114b0dce356602cd82e6cbe11487d266889b8890 Signed-off-by: Tristan Honscheid <honscheid@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4214751 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'docs/zephyr')
-rw-r--r--docs/zephyr/ztest.md13
1 files changed, 5 insertions, 8 deletions
diff --git a/docs/zephyr/ztest.md b/docs/zephyr/ztest.md
index d6b598b0e3..5adcae7c5b 100644
--- a/docs/zephyr/ztest.md
+++ b/docs/zephyr/ztest.md
@@ -128,20 +128,17 @@ platform/ec$ ./twister -T path/to/my/tests
### Run a specific test
```shell
-platform/ec$ ./twister -s external/platform/ec/zephyr/test/<test dir>/<my.test.case>
+platform/ec$ ./twister -s <test dir>/<my.test.scenario>
```
For example:
```shell
-platform/ec$ ./twister -s external/platform/ec/zephyr/test/drivers/drivers.default
+platform/ec$ ./twister -s drivers/drivers.default
```
-Explanation of this string: `external/` is not a path component, but rather a
-label that indicates we are running tests from outside of the Zephyr tree;
-`platform/ec/zephyr/test/` is the location of our tests relative to the first
-common parent of `ZEPHYR_BASE` and `platform/ec`; `drivers` is the directory for
-our driver tests, and `drivers.default` is a specific test scenario defined in
-that directory's `testcase.yaml` file.
+Explanation of this string: `drivers/` is the directory under `zephyr/test/`
+that contains the requested test, and `drivers.default` is the specific test
+scenario specified in that directory's `testcase.yaml` file.
### Run all tests with coverage