From b47861f35b0098ab5c71e35673520e64346cfa56 Mon Sep 17 00:00:00 2001 From: Lucas Meneghel Rodrigues Date: Fri, 6 Jun 2014 16:42:48 -0300 Subject: [PATCH] avocado.sysinfo: Don't crash if no sysinfo file is available In very restricted systems, it will not be available. Signed-off-by: Lucas Meneghel Rodrigues --- avocado/sysinfo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/avocado/sysinfo.py b/avocado/sysinfo.py index ad0ea9b6..92f049be 100644 --- a/avocado/sysinfo.py +++ b/avocado/sysinfo.py @@ -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)) -- GitLab