diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-14 11:01:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-16 13:21:34 +0100 |
commit | 5e8367e17f8ab1023b4a536348282fcea4df927d (patch) | |
tree | 1a3b361962b52210b5d19e9d4031ea5899fb73fd /meta/lib | |
parent | 5456a9261d4b810207d9e65afb47a488063bb03e (diff) | |
download | poky-5e8367e17f8ab1023b4a536348282fcea4df927d.tar.gz |
oeqa/selftest/wic: Use a subdir of builddir, not /var/
Using /var/ leave wic open to races with other processes on the system, use
a subdir of builddir instead to avoid this.
(From OE-Core rev: e07ec908ce7f26143a7bdf0a07a1230c0fd6ac87)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/wic.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 055175212a..5302e47da1 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py | |||
@@ -64,13 +64,13 @@ def only_for_arch(archs, image='core-image-minimal'): | |||
64 | class Wic(OESelftestTestCase): | 64 | class Wic(OESelftestTestCase): |
65 | """Wic test class.""" | 65 | """Wic test class.""" |
66 | 66 | ||
67 | resultdir = "/var/tmp/wic.oe-selftest/" | ||
68 | image_is_ready = False | 67 | image_is_ready = False |
69 | native_sysroot = None | 68 | native_sysroot = None |
70 | wicenv_cache = {} | 69 | wicenv_cache = {} |
71 | 70 | ||
72 | def setUpLocal(self): | 71 | def setUpLocal(self): |
73 | """This code is executed before each test method.""" | 72 | """This code is executed before each test method.""" |
73 | self.resultdir = self.builddir + "/wic-tmp/" | ||
74 | super(Wic, self).setUpLocal() | 74 | super(Wic, self).setUpLocal() |
75 | if not self.native_sysroot: | 75 | if not self.native_sysroot: |
76 | Wic.native_sysroot = get_bb_var('STAGING_DIR_NATIVE', 'wic-tools') | 76 | Wic.native_sysroot = get_bb_var('STAGING_DIR_NATIVE', 'wic-tools') |