From 8e7c583496cee783164860afc417403af61796c3 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Mon, 14 Apr 2014 18:54:04 +0200 Subject: [PATCH] add bld(ut_cmd=True) to enable specific test execution commands - Issue 1438 --- waflib/Tools/waf_unit_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waflib/Tools/waf_unit_test.py b/waflib/Tools/waf_unit_test.py index 9935c4a5..c9c4a635 100644 --- a/waflib/Tools/waf_unit_test.py +++ b/waflib/Tools/waf_unit_test.py @@ -33,7 +33,7 @@ the predefined callback:: bld.add_post_fun(waf_unit_test.summary) """ -import os, sys +import os from waflib.TaskGen import feature, after_method from waflib import Utils, Task, Logs, Options testlock = Utils.threading.Lock() @@ -107,7 +107,7 @@ class utest(Task.Task): cwd = getattr(self.generator, 'ut_cwd', '') or self.inputs[0].parent.abspath() - testcmd = getattr(Options.options, 'testcmd', False) + testcmd = getattr(self.generator, 'ut_cmd', False) or getattr(Options.options, 'testcmd', False) if testcmd: self.ut_exec = (testcmd % self.ut_exec[0]).split(' ')