avocado.sysinfo: Don't crash if no sysinfo file is available

In very restricted systems, it will not be available.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
上级 08d4e465
......@@ -393,7 +393,10 @@ class SysInfo(object):
# As the system log path is not standardized between distros,
# we have to probe and find out the correct path.
self.end_test_loggables.add(self._get_syslog_watcher())
try:
self.end_test_loggables.add(self._get_syslog_watcher())
except ValueError:
pass
for filename in _DEFAULT_FILES_START_TEST:
self.start_test_loggables.add(Logfile(filename))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册