提交 77ce8ba3 编写于 作者: D Daniel Latypov 提交者: Shuah Khan

Documentation: kunit: fix example run_kunit func to allow spaces in args

Without the quoting, the example will mess up invocations like
$ run_kunit "Something with spaces"

Note: this example isn't valid, but if ever a usecase arises where a
flag argument might have spaces in it, it'll break.
Signed-off-by: NDaniel Latypov <dlatypov@google.com>
Reviewed-by: NDavid Gow <davidgow@google.com>
Reviewed-by: NBrendan Higgins <brendanhiggins@google.com>
Signed-off-by: NShuah Khan <skhan@linuxfoundation.org>
上级 7635778b
...@@ -15,7 +15,7 @@ It can be handy to create a bash function like: ...@@ -15,7 +15,7 @@ It can be handy to create a bash function like:
.. code-block:: bash .. code-block:: bash
function run_kunit() { function run_kunit() {
( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run $@ ) ( cd "$(git rev-parse --show-toplevel)" && ./tools/testing/kunit/kunit.py run "$@" )
} }
.. note:: .. note::
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册