summaryrefslogtreecommitdiff
path: root/docs/ztest.md
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2021-09-27 20:30:23 +0000
committerCommit Bot <commit-bot@chromium.org>2021-09-28 17:44:57 +0000
commit19420dd91b46de1dce5ef622cbf1e7e3794a4023 (patch)
treeedacdb6ae2d31748b37c197d572f459a766f060d /docs/ztest.md
parentce0d7699e60405d7b8c6c8cc41f55a280432b2c5 (diff)
downloadchrome-ec-19420dd91b46de1dce5ef622cbf1e7e3794a4023.tar.gz
docs: replace "master" with "HEAD" in URLs
find . -name '*.md' | xargs sed -i 's#refs/heads/master#HEAD#g' find . -name '*.md' | xargs sed -i 's#+/master#+/HEAD#g' BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Iaac99ddc3463c8c7bb08038214e3eb22951db6a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3188552 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'docs/ztest.md')
-rw-r--r--docs/ztest.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ztest.md b/docs/ztest.md
index 2b8af31581..021b3391bd 100644
--- a/docs/ztest.md
+++ b/docs/ztest.md
@@ -33,9 +33,9 @@ have multiple threads of execution, which is enabled by a `$TEST.tasklist` file
associated with the unit test. The test runner task has a task ID of
`TASK_ID_TEST_RUNNER`, which can be used as an argument to any of the task
functions. See for example the
-[`charge_ramp` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/test/charge_ramp.c#81)
+[`charge_ramp` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/HEAD/test/charge_ramp.c#81)
and the
-[`host_command` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/test/host_command.c#32)
+[`host_command` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/HEAD/test/host_command.c#32)
When a unit test is ported to Ztest, `test_main` doesn't have a thread ID, so
`TASK_ID_TEST_RUNNER` is undefined. `charge_ramp` and `host_command` cannot be
@@ -43,7 +43,7 @@ ported at this time. `test_main` also cannot call any of the task functions that
must be called from a task, such as `task_wake`; these functions can pend the
calling task, but since `test_main` doesn't have a thread ID, the pend will
fail. See the
-[`mutex` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/master/test/mutex.c#116)
+[`mutex` unit test](https://chromium.googlesource.com/chromiumos/platform/ec/+/HEAD/test/mutex.c#116)
for an example.
## Determine source files being tested