From 55f33da85a1d642e72fb5436432c5ed20be56e7c Mon Sep 17 00:00:00 2001 From: stamparm Date: Fri, 1 Mar 2013 12:04:49 +0100 Subject: [PATCH] Fix for invalid logical test cases --- lib/core/agent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/core/agent.py b/lib/core/agent.py index 15f91831b..b7bd70f8c 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -112,7 +112,8 @@ class Agent(object): if conf.invalidLogical: match = re.search(r'\A[^ ]+', newValue) newValue = newValue[len(match.group() if match else ""):] - value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", randomInt(2), randomInt(2)) + _ = randomInt(2) + value = "%s%s AND %s=%s" % (origValue, match.group() if match else "", _, _ + 1) elif conf.invalidBignum: value = "%d.%d" % (randomInt(6), randomInt(1)) else: