
This commit adds a generate_subunit.py script which is used to generate a subunit stream with a single result for a period of time. It takes 2 mandatory args and 2 optional to specify the start time, stop time, and optionally the status (it defaults to success) and an id for test (if one isn't provided 'devstack' is used) The resulting stream is written to STDOUT. There is some overlap with subunit-output from tool from python-subunit, but this is a much smaller scope to just just do a test_id, status, and timestamps. subunit-output doesn't support timestamps. Eventually it'll be good to add the missing pieces to subunit-output at which point we can likely deprecate and remove this. The intent here is to leverage this to inject 'test results' into the subunit2sql db to reflect failures that occur before tempest (or any other test suite) is run. This is necessary for the openstack-health dashboard. (otherwise it makes our failure rate look much better than it is) This is only needed until we get a zuul mysql reporter in place which can give us the higher level run information. Change-Id: Icc7df33e4d73ba6322af38fbdf3aea230f2fcf4d
55 lines
1.4 KiB
INI
55 lines
1.4 KiB
INI
[metadata]
|
|
name = os-testr
|
|
summary = A testr wrapper to provide functionality for OpenStack projects
|
|
description-file =
|
|
README.rst
|
|
author = OpenStack
|
|
author-email = openstack-dev@lists.openstack.org
|
|
home-page = http://www.openstack.org/
|
|
classifier =
|
|
Environment :: OpenStack
|
|
Intended Audience :: Information Technology
|
|
Intended Audience :: System Administrators
|
|
License :: OSI Approved :: Apache Software License
|
|
Operating System :: POSIX :: Linux
|
|
Programming Language :: Python
|
|
Programming Language :: Python :: 2
|
|
Programming Language :: Python :: 2.7
|
|
Programming Language :: Python :: 2.6
|
|
Programming Language :: Python :: 3
|
|
Programming Language :: Python :: 3.3
|
|
Programming Language :: Python :: 3.4
|
|
|
|
[files]
|
|
packages =
|
|
os_testr
|
|
|
|
[entry_points]
|
|
console_scripts =
|
|
subunit-trace = os_testr.subunit_trace:main
|
|
ostestr = os_testr.os_testr:main
|
|
subunit2html = os_testr.subunit2html:main
|
|
generate-subunit = os_testr.generate_subunit:main
|
|
|
|
[build_sphinx]
|
|
source-dir = doc/source
|
|
build-dir = doc/build
|
|
all_files = 1
|
|
|
|
[upload_sphinx]
|
|
upload-dir = doc/build/html
|
|
|
|
[compile_catalog]
|
|
directory = os_testr/locale
|
|
domain = os-testr
|
|
|
|
[update_catalog]
|
|
domain = os-testr
|
|
output_dir = os_testr/locale
|
|
input_file = os_testr/locale/os-testr.pot
|
|
|
|
[extract_messages]
|
|
keywords = _ gettext ngettext l_ lazy_gettext
|
|
mapping_file = babel.cfg
|
|
output_file = os_testr/locale/os-testr.pot
|