summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-04-10 10:23:06 +0200
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-29 09:58:18 +0200
commitdf697602f1c00a89e58588ea3b4d79306d9ea70b (patch)
tree834e9bf979397b4aaf4b435f3ce2a622e1ae2aa1
parent7c4e0f3720db92ed1190a403be097053100a531e (diff)
downloadmeta-updater-df697602f1c00a89e58588ea3b4d79306d9ea70b.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.py4
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)