]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: make it work for multiple users
authorRobert Yang <liezhi.yang@windriver.com>
Thu, 10 Jan 2019 07:49:49 +0000 (15:49 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Feb 2019 22:13:05 +0000 (22:13 +0000)
commit872c6e5101f4f27dcfc63d141d1b6568f46d2b5f
tree64c2d3feab9abf6a161da3ba0cc82af085b4c5d3
parent05896e2f83ffef5262ccd3a0fa20b81b2a878957
oeqa: make it work for multiple users

There are failures when multiple users run oe-selftest on the same
host:

PermissionError: [Errno 13] Permission denied: '/tmp/oe-saved-
tests/201812250324_qemu'

This is because /tmp/oe-saved-tests was created by user A, while user B tries
to write data in it, then the error will happen. This patch can fix the
problem.

Move the dumped data to ${LOG_DIR}/runtime-hostdump/ rather than
/tmp/oe-saved-tests/ to fix the problem.

(From OE-Core rev: e219fe5329599cd6c3682f521eaee3852a2c8980)

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/testimage.bbclass
meta/lib/oeqa/runtime/context.py
meta/lib/oeqa/targetcontrol.py
meta/lib/oeqa/utils/dump.py