tests: framework: Add log output dir option.
tests: framework: New python runtests script.

Now the json result files are collected correctly.