xtesting.ci.run_tests module¶
The entry of running tests: 1) Parses xtesting/ci/testcases.yaml to check which testcase(s) to be run 2) Execute the common operations on every testcase (run, push results to db…) 3) Return the right status code
-
exception
xtesting.ci.run_tests.
BlockingTestFailed
¶ Bases:
Exception
Exception when the blocking test fails
-
class
xtesting.ci.run_tests.
Result
¶ Bases:
enum.Enum
The overall result in enumerated type
-
EX_ERROR
= -1¶
-
EX_OK
= 0¶
-
-
class
xtesting.ci.run_tests.
RunTestsParser
¶ Bases:
object
Parser to run tests
-
parse_args
(argv=None)¶ Parse arguments.
It can call sys.exit if arguments are incorrect.
- Returns:
- the arguments from cmdline
-
-
class
xtesting.ci.run_tests.
Runner
¶ Bases:
object
Runner class
-
static
get_dict_by_test
(testname)¶
-
static
get_run_dict
(testname)¶ Obtain the ‘run’ block of the testcase from testcases.yaml
-
main
(**kwargs)¶ Entry point of class Runner
-
run_all
()¶ Run all available testcases
-
run_test
(test)¶ Run one test case
-
run_tier
(tier)¶ Run one tier
-
static
source_envfile
(rc_file='/var/lib/xtesting/conf/env_file')¶ Source the env file passed as arg
-
summary
(tier=None)¶ To generate xtesting report showing the overall results
-
static
-
xtesting.ci.run_tests.
main
()¶ Entry point