Changeset d6db730 in rtems-central for rtemsspec/validation.py


Ignore:
Timestamp:
11/08/21 09:26:30 (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
d2c27b8
Parents:
91b8e87
git-author:
Sebastian Huber <sebastian.huber@…> (11/08/21 09:26:30)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/08/21 10:05:49)
Message:

validation: Move support code before fixture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsspec/validation.py

    r91b8e87 rd6db730  
    383383        content.write(os.path.join(base_directory, header["target"]))
    384384
    385     def _add_context_and_fixture(self, content: CContent) -> Optional[str]:
    386         instance = self.add_context(content)
     385    def _add_fixture(self, content: CContent, instance: str) -> Optional[str]:
    387386        if instance == "NULL":
    388387            self._context = "void"
     
    446445        """ Generates the content. """
    447446        self.add_test_case_description(content, test_case_to_suites)
    448         fixture = self._add_context_and_fixture(content)
     447        instance = self.add_context(content)
    449448        content.add(self.substitute_code(self["test-support"]))
     449        fixture = self._add_fixture(content, instance)
    450450        self._mapper.reset()
    451451        actions = self._add_test_case_actions(content)
Note: See TracChangeset for help on using the changeset viewer.