From 071cf55c00da63339956d33c6d6be6b144b7c520 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 27 Sep 2014 16:48:48 -0400 Subject: [PATCH] Unit Tests - Added a default 'hooks=off' to the basetest class, after it was discovered that the scan for runnable hooks takes non-trivial time. --- src/Eval.cpp | 1 + test/basetest/task.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Eval.cpp b/src/Eval.cpp index 5f2680aad..985fe1199 100644 --- a/src/Eval.cpp +++ b/src/Eval.cpp @@ -136,6 +136,7 @@ void Eval::evaluateInfixExpression (const std::string& e, Variant& v) const // Parse for syntax checking and operator replacement. if (_debug) context.debug ("FILTER Infix " + dump (tokens)); + infixParse (tokens); if (_debug) context.debug ("FILTER Infix parsed " + dump (tokens)); diff --git a/test/basetest/task.py b/test/basetest/task.py index e9c1953df..6bcd677b4 100644 --- a/test/basetest/task.py +++ b/test/basetest/task.py @@ -48,7 +48,8 @@ class Task(object): # Cannot call self.config until confirmation is disabled with open(self.taskrc, 'w') as rc: rc.write("data.location={0}\n" - "confirmation=no\n".format(self.datadir)) + "confirmation=no\n" + "hooks=off\n".format(self.datadir)) # Setup configuration to talk to taskd automatically if self.taskd is not None: