mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-07 17:05:17 +01:00
add bld(ut_cmd=True) to enable specific test execution commands - Issue 1438
This commit is contained in:
parent
5f95323ecb
commit
8e7c583496
@ -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(' ')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user