summary¶
Source code: summary.py
Displays a status summary for all tests in the current section.
Description¶
This is a test to display a summary of test results in same test group. The summary includes tests up to, but not including, this test itself.
For example, if the test tree is:
SMT
...
Runin
A
B
C
report (this test)
shutdown
Then this test will show the status summary for A, B, and C. No shutdown.
This test is often used as a “barrier” or “check point” when the argument
disable_input_on_fail
is set, since operators can’t skip to next test item
when the overall status is not PASSED.
Moreover, if argument pass_without_prompt
is True
, the test will pass
silently and move to next test item without user interaction. This is usually
known as “Barrier” mode. Otherwise, it’ll prompt the given message and wait for
input, which is known as “Check Point” mode.
Test Procedure¶
If all previous tests in same group are passed, this test will display nothing and simply pass when argument
pass_without_prompt
is True, otherwise display a table of test names and results, prompt the given (or default) message and wait for input to pass or fail.Otherwise, if any previous tests in same group failed, a table listing test names and results will be displayed. Depends on argument
disable_input_on_fail
, operator may choose to continue or will stay in failure screen.
Dependency¶
None.
Examples¶
To list previous tests in same group, and always prompt and wait for input to decide if we can move on, add this in test list:
{
"pytest_name": "summary"
}
To only stop when any previous tests in same group has failed (“Barrier”):
{
"pytest_name": "summary",
"allow_reboot": true,
"disable_abort": true,
"args": {
"disable_input_on_fail": true,
"pass_without_prompt": true
}
}
To always prompt but only pass if all previous tests in same group passed (“Check Point”):
{
"pytest_name": "summary",
"allow_reboot": true,
"disable_abort": true,
"args": {
"prompt_message": "i18n! Press space to shutdown.",
"disable_input_on_fail": true,
"pass_without_prompt": false
}
}
Test Arguments¶
Name |
Type |
Description |
---|---|---|
prompt_message |
str, dict |
(optional; default: |
disable_input_on_fail |
bool |
(optional; default: |
pass_without_prompt |
bool |
(optional; default: |
bft_fixture |
dict, None |
(optional; default: |
accessibility |
bool |
(optional; default: |
include_parents |
bool |
(optional; default: |
run_factory_external_name |
str, None |
(optional; default: |
screensaver_timeout |
int, None |
(optional; default: |