Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
fb80bb0a
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fb80bb0a
编写于
2月 13, 2017
作者:
L
Lukáš Doktor
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: Add docs about interrupting/pausing tests execution
Signed-off-by:
N
Lukáš Doktor
<
ldoktor@redhat.com
>
上级
32273ee4
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
27 addition
and
0 deletion
+27
-0
docs/source/GetStartedGuide.rst
docs/source/GetStartedGuide.rst
+27
-0
未找到文件。
docs/source/GetStartedGuide.rst
浏览文件 @
fb80bb0a
...
...
@@ -369,6 +369,9 @@ trying to fetch those URLs, and reporting PASS or FAIL for each of them.
Debugging tests
===============
Showing test output
-------------------
When developing new tests, you frequently want to look straight at the
job log, without switching screens or having to "tail" the job log.
...
...
@@ -391,5 +394,29 @@ In order to do that, you can use ``avocado --show test run ...`` or
As you can see, the UI output is suppressed and only the job log is shown,
making this a useful feature for test development and debugging.
Interrupting tests execution
----------------------------
To interrupt a job execution a user can press ``ctrl+c`` which after a single
press sends SIGTERM to the main test's process and waits for it to finish.
If this does not help user can press ``ctrl+c`` again (after 2s grace period)
which destroys the test's process ungracefully and safely finishes the job
execution always providing the test results.
To pause the test execution a user can use ``ctrl+z`` which sends ``SIGSTOP``
to all processes inherited from the test's PID. We do our best to stop all
processes, but the operation is not atomic and some new processes might
not be stopped. Another ``ctrl+z`` sends ``SIGCONT`` to all
processes inherited by the test's PID resuming the execution. Note the
test execution time (concerning the test timeout) are still running while
the test's process is stopped.
The test can also be interrupted by an Avocado feature. One example would
be the `Debugging with GDB` :doc:`DebuggingWithGDB` feature.
For custom interactions it is also possible to use other means like ``pdb``
or ``pydevd`` :doc:`DevelopmentTips` breakpoints. Beware it's not possible
to use ``STDIN`` from tests (unless dark magic is used).
.. _Avocado Long Term Stability: https://www.redhat.com/archives/avocado-devel/2016-April/msg00038.html
.. _OpenSUSE: https://build.opensuse.org/package/show/Virtualization:Tests/avocado
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录