diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2019-01-10 15:49:49 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-02-25 22:27:45 +0000 |
commit | e8b9772ab83e432f3fab2be61d2b39f2c0bac0b9 (patch) | |
tree | 92609e6a02e942be3da279de2467622fe7283974 /meta/classes | |
parent | 75bcf06098905a30aac56865c276780fee92a32b (diff) | |
download | poky-e8b9772ab83e432f3fab2be61d2b39f2c0bac0b9.tar.gz |
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)
(From OE-Core rev: 872c6e5101f4f27dcfc63d141d1b6568f46d2b5f)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testimage.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index d77f8e6862..ff7176b8ad 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -74,7 +74,7 @@ TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'createrepo-c- | |||
74 | TESTIMAGELOCK = "${TMPDIR}/testimage.lock" | 74 | TESTIMAGELOCK = "${TMPDIR}/testimage.lock" |
75 | TESTIMAGELOCK_qemuall = "" | 75 | TESTIMAGELOCK_qemuall = "" |
76 | 76 | ||
77 | TESTIMAGE_DUMP_DIR ?= "/tmp/oe-saved-tests/" | 77 | TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/" |
78 | 78 | ||
79 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" | 79 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" |
80 | 80 | ||
@@ -246,6 +246,7 @@ def testimage_main(d): | |||
246 | 'bootlog' : bootlog, | 246 | 'bootlog' : bootlog, |
247 | 'kvm' : kvm, | 247 | 'kvm' : kvm, |
248 | 'slirp' : slirp, | 248 | 'slirp' : slirp, |
249 | 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), | ||
249 | } | 250 | } |
250 | 251 | ||
251 | # TODO: Currently BBPATH is needed for custom loading of targets. | 252 | # TODO: Currently BBPATH is needed for custom loading of targets. |