summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime
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/lib/oeqa/runtime
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/lib/oeqa/runtime')
-rw-r--r--meta/lib/oeqa/runtime/context.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py
index a7f3823996..273412d151 100644
--- a/meta/lib/oeqa/runtime/context.py
+++ b/meta/lib/oeqa/runtime/context.py
@@ -49,7 +49,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
49 default_manifest = 'data/manifest' 49 default_manifest = 'data/manifest'
50 default_server_ip = '192.168.7.1' 50 default_server_ip = '192.168.7.1'
51 default_target_ip = '192.168.7.2' 51 default_target_ip = '192.168.7.2'
52 default_host_dumper_dir = '/tmp/oe-saved-tests'
53 default_extract_dir = 'packages/extracted' 52 default_extract_dir = 'packages/extracted'
54 53
55 def register_commands(self, logger, subparsers): 54 def register_commands(self, logger, subparsers):
@@ -71,9 +70,7 @@ class OERuntimeTestContextExecutor(OETestContextExecutor):
71 % self.default_server_ip) 70 % self.default_server_ip)
72 71
73 runtime_group.add_argument('--host-dumper-dir', action='store', 72 runtime_group.add_argument('--host-dumper-dir', action='store',
74 default=self.default_host_dumper_dir, 73 help="Directory where host status is dumped, if tests fails")
75 help="Directory where host status is dumped, if tests fails, default: %s" \
76 % self.default_host_dumper_dir)
77 74
78 runtime_group.add_argument('--packages-manifest', action='store', 75 runtime_group.add_argument('--packages-manifest', action='store',
79 default=self.default_manifest, 76 default=self.default_manifest,