From f5474a35e512b983bd8cd59fad66370f3e1431d8 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 2 Jul 2014 13:22:33 +0200 Subject: Squish: Fix detection of expected debuggers on Linux and Mac Change-Id: Ie3f1c291e9ba4646fb948bf30d38d8db9af31886 Reviewed-by: Robert Loehning --- tests/system/suite_general/tst_default_settings/test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/system') diff --git a/tests/system/suite_general/tst_default_settings/test.py b/tests/system/suite_general/tst_default_settings/test.py index 5156036e0c..055ff98ff8 100644 --- a/tests/system/suite_general/tst_default_settings/test.py +++ b/tests/system/suite_general/tst_default_settings/test.py @@ -215,8 +215,8 @@ def __getExpectedDebuggers__(): result = [] if platform.system() in ('Microsoft', 'Windows'): result.extend(__getCDB__()) - debuggers = ["gdb", "lldb"] - result.extend(filter(None, map(which, debuggers))) + for debugger in ["gdb", "lldb"]: + result.extend(findAllFilesInPATH(debugger)) if platform.system() == 'Linux': result.extend(findAllFilesInPATH("lldb-*")) if platform.system() == 'Darwin': -- cgit v1.2.1