summaryrefslogtreecommitdiffstats
path: root/lib
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:22 +0200
commiteb6d5fdb82514b051d1e595b556f61602866696d (patch)
treede7dc4c3050a3851e3289d6f836e2e4832047cbf /lib
parent7fd15e54115e6483a20c05e045d8dfe1883522bf (diff)
downloadmeta-updater-eb6d5fdb82514b051d1e595b556f61602866696d.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>
Diffstat (limited to 'lib')
-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)