Changeset a4e08c5 in rtems-central


Ignore:
Timestamp:
Apr 18, 2020, 12:51:08 PM (13 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
71d8b3c
Parents:
8230acb
git-author:
Sebastian Huber <sebastian.huber@…> (04/18/20 12:51:08)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/18/20 12:52:34)
Message:

Enable branch coverage

Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r8230acb ra4e08c5  
    55
    66check: check-env
    7         coverage run -m pytest -vv rtemsqual/tests
     7        coverage run --branch -m pytest -vv rtemsqual/tests
    88
    99format: $(PY_ALL_FILES) | check-env
  • rtemsqual/glossary.py

    r8230acb ra4e08c5  
    9898
    9999def _generate_project_glossary(target: str, project_terms: ItemMap) -> None:
    100     if target:
    101         content = _generate_glossary_content(project_terms)
    102         content.write(target)
     100    content = _generate_glossary_content(project_terms)
     101    content.write(target)
    103102
    104103
  • rtemsqual/tests/spec-applconfig/j.yml

    r8230acb ra4e08c5  
    11SPDX-License-Identifier: CC-BY-SA-4.0
    22appl-config-option-type: integer
    3 appl-config-option-default-value: 1
     3appl-config-option-default-value: Foo bar.
    44appl-config-option-description: description j
    55appl-config-option-index: []
  • rtemsqual/tests/test_applconfig.py

    r8230acb ra4e08c5  
    254254            "\n"
    255255            "DEFAULT VALUE:\n"
    256             "    The default value is 1.\n"
     256            "    Foo bar.\n"
    257257            "\n"
    258258            "VALUE CONSTRAINTS:\n"
     
    324324            "\n"
    325325            "NOTES:\n"
     326            "    None.\n"
     327            "\n"
     328            ".. index:: m\n"
     329            "\n"
     330            ".. _m:\n"
     331            "\n"
     332            "m\n"
     333            "-\n"
     334            "\n"
     335            "CONSTANT:\n"
     336            "    ``m``\n"
     337            "\n"
     338            "OPTION TYPE:\n"
     339            "    This configuration option is an initializer define.\n"
     340            "\n"
     341            "DEFAULT VALUE:\n"
     342            "    The default value is 1.\n"
     343            "\n"
     344            "DESCRIPTION:\n"
     345            "    description m\n"
     346            "\n"
     347            "NOTES:\n"
    326348            "    None.\n")
    327349        assert content == src.read()
  • rtemsqual/tests/test_content_sphinx.py

    r8230acb ra4e08c5  
    2525# POSSIBILITY OF SUCH DAMAGE.
    2626
     27import os
    2728import pytest
    2829
     
    110111    sc = SphinxContent()
    111112    sc.add_line("x")
    112     path = tmpdir + "/y/z"
     113    path = os.path.join(tmpdir, "x", "y")
     114    sc.write(path)
     115    with open(path, "r") as src:
     116        assert "x\n" == src.read()
     117    tmpdir.chdir()
     118    path = "z"
    113119    sc.write(path)
    114120    with open(path, "r") as src:
Note: See TracChangeset for help on using the changeset viewer.