Re: [PATCH] Start conversion tests to using pytest.

2020-03-15 Thread Amar Takhar
On 2020-03-15 21:28 -0600, Gedare Bloom wrote: > > +# Always find the parent directory of rtemstoolkit/ no matter where > > +# pytest is run. > > +def pytest_runtest_setup(item): > > +path_toolkit = os.path.dirname(os.path.abspath(__file__)) > > +path.append(path_toolkit[0:path_toolkit.rfi

Re: [PATCH] Start conversion tests to using pytest.

2020-03-15 Thread Amar Takhar
On 2020-03-15 21:28 -0600, Gedare Bloom wrote: > For new files, we should try to use the boilerplate recently suggested: > https://docs.rtems.org/branches/master/eng/coding-file-hdr.html#python-file-template I'll fix this before pushing thanks. > If that should be tweaked, now is the time to do

Re: [PATCH] Start conversion tests to using pytest.

2020-03-15 Thread Gedare Bloom
On Sun, Mar 15, 2020 at 8:13 PM Amar Takhar wrote: > > error.py: > - Check for exceptions and error messages. > > path.py: > - Test params and setting module variables. > > macros.py: > - Test class with setup and shared module access. > > host.py: > - Check host specific settings

[PATCH] Start conversion tests to using pytest.

2020-03-15 Thread Amar Takhar
error.py: - Check for exceptions and error messages. path.py: - Test params and setting module variables. macros.py: - Test class with setup and shared module access. host.py: - Check host specific settings using simple regex for formatting. - String check on exception. Thi