core-admin/qubes
Marek Marczykowski-Górecki 8dab298b89
tests: create testcases on module import if environment variable is set
If QUBES_TEST_TEMPLATES or QUBES_TEST_LOAD_ALL is set, create testcases
on modules import, instead of waiting until `load_tests` is called.
The `QUBES_TEST_TEMPLATES` doesn't require `qubes.xml` access, so it
should be safe to do regardless of the environment. The
`QUBES_TEST_LOAD_ALL` force loading tests (and reading `qubes.xml`)
regardless.

This is useful for test runners not supporting load_tests protocol. Or
with limited support - for example both default `unittest` runner and
`nose2` can either use load_tests protocol _or_ select individual tests.
Setting any of those variable allow to run a single test with those
runners.

With this feature used together load_tests protocol, tests could be
registered twice. Avoid this by not listing already defined test classes
in create_testcases_for_templates (according to load_tests protocol,
those should already be registered).
2018-10-10 00:08:29 +02:00
..
api api/admin: fix typo 2018-09-13 19:46:46 +00:00
ext Merge remote-tracking branch 'qubesos/pr/224' 2018-09-02 03:36:00 +02:00
qmemman qmemman: fix early crash 2018-01-18 17:36:37 +01:00
storage storage/reflink: use context managers in is_supported() 2018-09-13 19:46:48 +00:00
tests tests: create testcases on module import if environment variable is set 2018-10-10 00:08:29 +02:00
tools app: uncouple pool setup from loading initial configuration 2018-09-11 23:50:25 +00:00
vm Add default_qrexec_timeout to qubes-prefs 2018-09-16 18:42:48 +00:00
__init__.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
app.py Add default_qrexec_timeout to qubes-prefs 2018-09-16 18:42:48 +00:00
backup.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
config.py app: create /var/lib/qubes as file-reflink if supported 2018-09-11 23:50:26 +00:00
core2migration.py Make pylint happy 2017-12-21 18:19:10 +01:00
devices.py Update documentation for device-attach event 2018-09-19 05:44:02 +02:00
dochelpers.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
events.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
exc.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
firewall.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
log.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
rngdoc.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00
tarwriter.py Change license to LGPL v2.1+ 2017-10-12 00:11:50 +02:00
utils.py Fix issues found by pylint 2.0 2018-07-15 23:51:15 +02:00