summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2019-01-10 15:49:49 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-02-06 16:38:30 +0000
commitf54aac732b70730b6ed393ae8cbacb1a0feab327 (patch)
tree78d590a74e800dff2eb64376fdf82db4b429ea42 /meta/classes/testimage.bbclass
parent87845031ae672f239efbc16af4285611809f7194 (diff)
downloadpoky-f54aac732b70730b6ed393ae8cbacb1a0feab327.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: 310a2b137f2cb249885844fa12830365f94866f0) 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/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 73cd375dcb..cb8c12acce 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -77,7 +77,7 @@ TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'deb', 'apt-native:do
77TESTIMAGELOCK = "${TMPDIR}/testimage.lock" 77TESTIMAGELOCK = "${TMPDIR}/testimage.lock"
78TESTIMAGELOCK_qemuall = "" 78TESTIMAGELOCK_qemuall = ""
79 79
80TESTIMAGE_DUMP_DIR ?= "/tmp/oe-saved-tests/" 80TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/"
81 81
82TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" 82TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR"
83 83
@@ -249,6 +249,7 @@ def testimage_main(d):
249 'bootlog' : bootlog, 249 'bootlog' : bootlog,
250 'kvm' : kvm, 250 'kvm' : kvm,
251 'slirp' : slirp, 251 'slirp' : slirp,
252 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"),
252 } 253 }
253 254
254 # TODO: Currently BBPATH is needed for custom loading of targets. 255 # TODO: Currently BBPATH is needed for custom loading of targets.