diff options
author | Laurent Bonnans <laurent.bonnans@here.com> | 2019-04-10 10:23:06 +0200 |
---|---|---|
committer | Laurent Bonnans <laurent.bonnans@here.com> | 2019-04-10 10:26:15 +0200 |
commit | ca62e64dd6f379cfe2e04c7240eec418df14c27c (patch) | |
tree | e227b868ed18c92e9e4e55df72f06cb492096b86 | |
parent | f47d2d8deeccb56f839035c383c68da6558c5d9c (diff) | |
download | meta-updater-ca62e64dd6f379cfe2e04c7240eec418df14c27c.tar.gz |
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 <laurent.bonnans@here.com>
-rw-r--r-- | lib/oeqa/selftest/cases/updater_qemux86_64_ptest.py | 4 |
1 files 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): | |||
37 | return qemu_send_command(self.qemu.ssh_port, command, timeout=timeout) | 37 | return qemu_send_command(self.qemu.ssh_port, command, timeout=timeout) |
38 | 38 | ||
39 | def test_run_ptests(self): | 39 | def test_run_ptests(self): |
40 | # logger = logging.getLogger("selftest") | 40 | # simulate a login shell, so that /usr/sbin is in $PATH (from /etc/profile) |
41 | stdout, stderr, retcode = self.qemu_command('ptest-runner', timeout=None) | 41 | stdout, stderr, retcode = self.qemu_command('sh -l -c ptest-runner', timeout=None) |
42 | output = stdout.decode() | 42 | output = stdout.decode() |
43 | print(output) | 43 | print(output) |
44 | self.assertEqual(retcode, 0) | 44 | self.assertEqual(retcode, 0) |