From 518874f48a9154b2a1cf7a0bf588a79b6f17baa5 Mon Sep 17 00:00:00 2001 From: Lou Berger Date: Fri, 13 Apr 2018 11:47:02 -0400 Subject: [PATCH] lib: fix path the led to group_nl_converted being referenced when not set Signed-off-by: Lou Berger --- tests/topotests/lib/lutil.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/topotests/lib/lutil.py b/tests/topotests/lib/lutil.py index d74d806f0b..fe13491483 100755 --- a/tests/topotests/lib/lutil.py +++ b/tests/topotests/lib/lutil.py @@ -208,6 +208,8 @@ Total %-4d %-4d %d\n\ if search_nl != None: group_nl = search_nl.group() group_nl_converted = " ".join(group_nl.splitlines()) + else: + group_nl_converted = None out = " ".join(out.splitlines()) search = re.search(regexp, out)