I thought it would be handy to have a write_keyval() API call inside test.
That way, code like this:

f = open(os.path.join(self.resultdir, 'keyval'), 'a')
f.write(results_dictionary)
f.close()

Could be replaced by this:

self.write_keyval(results_dictionary)

Other benefits:
* keynames can be validated (no whitespace check, etc)
* Guarantee that all tests write keyval to resultdir/keyval and not
somehwere else by accident

Signed-off-by: Mandeep Singh Baines <msb@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1165 592f7852-d20e-0410-864c-8624ca9c26a4
2 files changed