diff options
| author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-07-14 11:01:24 +0000 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-24 21:45:58 +0000 |
| commit | 8799bc3171872f04429eee511693efb9842e80c0 (patch) | |
| tree | 18a24e07eb53996202a642fed621f31ce0e2ee81 | |
| parent | 091d470a8ae2641040983484609e5cd4dfcf9bfd (diff) | |
| download | poky-8799bc3171872f04429eee511693efb9842e80c0.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)
(From OE-Core rev: 17223b0045896c9f342e9079d2345b730a3048cc)
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>
| -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 b84466d9ae..bff5745fe0 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') |
