* [PATCH 0/1] oeqa: make it work for multiple users @ 2019-01-10 7:49 Robert Yang 2019-01-10 7:49 ` [PATCH 1/1] " Robert Yang 2019-01-10 8:03 ` ✗ patchtest: failure for " Patchwork 0 siblings, 2 replies; 4+ messages in thread From: Robert Yang @ 2019-01-10 7:49 UTC (permalink / raw) To: openembedded-core The following changes since commit 237ed166f48b0e32684a5307d3b47b9485238ed9: oeqa/sdk: add test to exercise Meson (2019-01-07 17:45:44 +0000) are available in the git repository at: git://git.openembedded.org/openembedded-core-contrib rbt/oeqa http://cgit.openembedded.org/openembedded-core-contrib/log/?h=rbt/oeqa Robert Yang (1): oeqa: make it work for multiple users meta/classes/testimage.bbclass | 3 ++- meta/lib/oeqa/runtime/context.py | 5 +---- meta/lib/oeqa/targetcontrol.py | 2 ++ meta/lib/oeqa/utils/dump.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) -- 2.7.4 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] oeqa: make it work for multiple users 2019-01-10 7:49 [PATCH 0/1] oeqa: make it work for multiple users Robert Yang @ 2019-01-10 7:49 ` Robert Yang 2019-01-10 8:03 ` ✗ patchtest: failure for " Patchwork 1 sibling, 0 replies; 4+ messages in thread From: Robert Yang @ 2019-01-10 7:49 UTC (permalink / raw) To: openembedded-core 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. Signed-off-by: Robert Yang <liezhi.yang@windriver.com> --- meta/classes/testimage.bbclass | 3 ++- meta/lib/oeqa/runtime/context.py | 5 +---- meta/lib/oeqa/targetcontrol.py | 2 ++ meta/lib/oeqa/utils/dump.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 73cd375..cb8c12a 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 TESTIMAGELOCK = "${TMPDIR}/testimage.lock" TESTIMAGELOCK_qemuall = "" -TESTIMAGE_DUMP_DIR ?= "/tmp/oe-saved-tests/" +TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/" TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" @@ -249,6 +249,7 @@ def testimage_main(d): 'bootlog' : bootlog, 'kvm' : kvm, 'slirp' : slirp, + 'dump_dir' : d.getVar("TESTIMAGE_DUMP_DIR"), } # TODO: Currently BBPATH is needed for custom loading of targets. diff --git a/meta/lib/oeqa/runtime/context.py b/meta/lib/oeqa/runtime/context.py index 943e29b..db0482d 100644 --- a/meta/lib/oeqa/runtime/context.py +++ b/meta/lib/oeqa/runtime/context.py @@ -49,7 +49,6 @@ class OERuntimeTestContextExecutor(OETestContextExecutor): default_manifest = 'data/manifest' default_server_ip = '192.168.7.1' default_target_ip = '192.168.7.2' - default_host_dumper_dir = '/tmp/oe-saved-tests' default_extract_dir = 'packages/extracted' def register_commands(self, logger, subparsers): @@ -71,9 +70,7 @@ class OERuntimeTestContextExecutor(OETestContextExecutor): % self.default_server_ip) runtime_group.add_argument('--host-dumper-dir', action='store', - default=self.default_host_dumper_dir, - help="Directory where host status is dumped, if tests fails, default: %s" \ - % self.default_host_dumper_dir) + help="Directory where host status is dumped, if tests fails") runtime_group.add_argument('--packages-manifest', action='store', default=self.default_manifest, diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py index 97d67ad..1868ad3 100644 --- a/meta/lib/oeqa/targetcontrol.py +++ b/meta/lib/oeqa/targetcontrol.py @@ -107,6 +107,8 @@ class QemuTarget(BaseTarget): dump_target_cmds = d.getVar("testimage_dump_target") dump_host_cmds = d.getVar("testimage_dump_host") dump_dir = d.getVar("TESTIMAGE_DUMP_DIR") + if not dump_dir: + dump_dir = os.path.join(d.getVar('LOG_DIR'), 'runtime-hostdump') use_kvm = oe.types.qemu_use_kvm(d.getVar('QEMU_USE_KVM'), d.getVar('TARGET_ARCH')) # Log QemuRunner log output to a file diff --git a/meta/lib/oeqa/utils/dump.py b/meta/lib/oeqa/utils/dump.py index 5a7edc1..79c22b7 100644 --- a/meta/lib/oeqa/utils/dump.py +++ b/meta/lib/oeqa/utils/dump.py @@ -12,7 +12,7 @@ class BaseDumper(object): self.cmds = [] # Some testing doesn't inherit testimage, so it is needed # to set some defaults. - self.parent_dir = parent_dir or "/tmp/oe-saved-tests" + self.parent_dir = parent_dir dft_cmds = """ top -bn1 iostat -x -z -N -d -p ALL 20 2 ps -ef -- 2.7.4 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* ✗ patchtest: failure for oeqa: make it work for multiple users 2019-01-10 7:49 [PATCH 0/1] oeqa: make it work for multiple users Robert Yang 2019-01-10 7:49 ` [PATCH 1/1] " Robert Yang @ 2019-01-10 8:03 ` Patchwork 2019-01-10 8:11 ` Robert Yang 1 sibling, 1 reply; 4+ messages in thread From: Patchwork @ 2019-01-10 8:03 UTC (permalink / raw) To: Robert Yang; +Cc: openembedded-core == Series Details == Series: oeqa: make it work for multiple users Revision: 1 URL : https://patchwork.openembedded.org/series/15590/ State : failure == Summary == Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures: * Issue Series does not apply on top of target branch [test_series_merge_on_head] Suggested fix Rebase your series on top of targeted branch Targeted branch master (currently at 65c419b8c4) If you believe any of these test results are incorrect, please reply to the mailing list (openembedded-core@lists.openembedded.org) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...). --- Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: ✗ patchtest: failure for oeqa: make it work for multiple users 2019-01-10 8:03 ` ✗ patchtest: failure for " Patchwork @ 2019-01-10 8:11 ` Robert Yang 0 siblings, 0 replies; 4+ messages in thread From: Robert Yang @ 2019-01-10 8:11 UTC (permalink / raw) To: openembedded-core On 1/10/19 4:03 PM, Patchwork wrote: > == Series Details == > > Series: oeqa: make it work for multiple users > Revision: 1 > URL : https://patchwork.openembedded.org/series/15590/ > State : failure > > == Summary == > > > Thank you for submitting this patch series to OpenEmbedded Core. This is > an automated response. Several tests have been executed on the proposed > series by patchtest resulting in the following failures: > > > > * Issue Series does not apply on top of target branch [test_series_merge_on_head] > Suggested fix Rebase your series on top of targeted branch > Targeted branch master (currently at 65c419b8c4) I can't find 65c419b8c4 in my repo on master or master-next branch, maybe something is wrong with patchtest ? // Robert > > > > If you believe any of these test results are incorrect, please reply to the > mailing list (openembedded-core@lists.openembedded.org) raising your concerns. > Otherwise we would appreciate you correcting the issues and submitting a new > version of the patchset if applicable. Please ensure you add/increment the > version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> > [PATCH v3] -> ...). > > --- > Guidelines: https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines > Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest > Test suite: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe > > ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-01-10 8:07 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2019-01-10 7:49 [PATCH 0/1] oeqa: make it work for multiple users Robert Yang 2019-01-10 7:49 ` [PATCH 1/1] " Robert Yang 2019-01-10 8:03 ` ✗ patchtest: failure for " Patchwork 2019-01-10 8:11 ` Robert Yang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox