From a309f74b7618edfcd1b06f4ed89d5b891bbc8c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jurko=20Gospodneti=C4=87?= Date: Wed, 27 Jun 2012 09:56:49 +0000 Subject: [PATCH] Updated the Boost Build collect_debug_info.py test to avoid an assertion failure reported by some Boost library testers (e.g. Sandia-darwin-4.4) and see more information on what caused them. [SVN r79132] --- v2/test/collect_debug_info.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/v2/test/collect_debug_info.py b/v2/test/collect_debug_info.py index 0986e12a3..96b58a9f1 100755 --- a/v2/test/collect_debug_info.py +++ b/v2/test/collect_debug_info.py @@ -239,14 +239,12 @@ def _getJamVersionInfo(t): re.MULTILINE): name = m.group(1) value = m.group(2) - if value: - assert len(value) > 2 - assert value[0] == "'" - assert value[-2] == "'" - assert value[-1] == " " + if not value: + value = [] + elif len(value) > 2 and value[0] == "'" and value[-2:] == "' ": value = value[1:-2].split("' '") else: - value = [] + value = "RAW:/%s/ (%d)" % (value, len(value)) result.append("%s = %s" % (name, value)) result.append("")