From df697602f1c00a89e58588ea3b4d79306d9ea70b Mon Sep 17 00:00:00 2001 From: Laurent Bonnans Date: Wed, 10 Apr 2019 10:23:06 +0200 Subject: Fix problem with lshw for aktualizr ptest lshw is installed in `/usr/sbin` which does not appear when a command is launched outside a non-login shell. Signed-off-by: Laurent Bonnans --- lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py b/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py index 8ac6443..a04032c 100644 --- a/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py +++ b/lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py @@ -37,8 +37,8 @@ class PtestTests(OESelftestTestCase): return qemu_send_command(self.qemu.ssh_port, command, timeout=timeout) def test_run_ptests(self): - # logger = logging.getLogger("selftest") - stdout, stderr, retcode = self.qemu_command('ptest-runner', timeout=None) + # simulate a login shell, so that /usr/sbin is in $PATH (from /etc/profile) + stdout, stderr, retcode = self.qemu_command('sh -l -c ptest-runner', timeout=None) output = stdout.decode() print(output) self.assertEqual(retcode, 0) -- cgit v1.2.3-54-g00ecf