]> granicus.if.org Git - esp-idf/commit
tiny-test-fw: fix misc bugs:
authorHe Yin Ling <heyinling@espressif.com>
Tue, 16 Jan 2018 14:16:03 +0000 (22:16 +0800)
committerbot <bot@espressif.com>
Tue, 15 May 2018 03:29:31 +0000 (03:29 +0000)
commit2b068f3cebcf31c2f93fcae6314d0813bccf1d84
tree76890d709a6d43c96c7aa1da03e38433552eb98b
parent98d1f05ab520e16cfa9861f57dcdf285178b4d56
tiny-test-fw: fix misc bugs:

1. configs are not functional
    * decorator will be executed when search case, need to set default config before search case.
2. fix DUT encode/decode errors
    * python3 serial don't support write string/unicode, need to convert to bytes first.
    * python2 string could failed to encode/decode non-acsii chars
3. fix bug that log folder not created
4. fix bug that test suite name is not correctly passed:
    * the keyward arg should be `test_suite_name` not `test_name`
5. fix bug that test stopped on failed case
6. fix DUT `read` don't return all data cache
    * `_DataCache.get_data` should first copy all data from queue to data cache and then return to user.
7. fix bug that `expect_all` failed even all expected item passed
8. optimize error info for expect
    * print pattern for regular expression when match failed
9. fix bug that set default config doesn't work
tools/tiny-test-fw/App.py
tools/tiny-test-fw/DUT.py
tools/tiny-test-fw/Env.py
tools/tiny-test-fw/EnvConfig.py
tools/tiny-test-fw/Runner.py
tools/tiny-test-fw/TinyFW.py
tools/tiny-test-fw/docs/index.rst
tools/tiny-test-fw/example.py