mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 00:20:44 +09:00
binman: Re-enable concurrent tests
With the change to absolute imports the concurrent tests feature unfortunately broke. Fix it. We cannot easy add a warning, since the output messes up tests which check the output. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8beed3d7ac
commit
0b9116e31a
@ -16,7 +16,8 @@ from io import StringIO
|
|||||||
|
|
||||||
use_concurrent = True
|
use_concurrent = True
|
||||||
try:
|
try:
|
||||||
from concurrencytest import ConcurrentTestSuite, fork_for_tests
|
from concurrencytest.concurrencytest import ConcurrentTestSuite
|
||||||
|
from concurrencytest.concurrencytest import fork_for_tests
|
||||||
except:
|
except:
|
||||||
use_concurrent = False
|
use_concurrent = False
|
||||||
|
|
||||||
@ -50,6 +51,7 @@ def RunTestCoverage(prog, filter_fname, exclude_list, build_dir, required=None,
|
|||||||
glob_list = []
|
glob_list = []
|
||||||
glob_list += exclude_list
|
glob_list += exclude_list
|
||||||
glob_list += ['*libfdt.py', '*site-packages*', '*dist-packages*']
|
glob_list += ['*libfdt.py', '*site-packages*', '*dist-packages*']
|
||||||
|
glob_list += ['*concurrencytest*']
|
||||||
test_cmd = 'test' if 'binman' in prog or 'patman' in prog else '-t'
|
test_cmd = 'test' if 'binman' in prog or 'patman' in prog else '-t'
|
||||||
prefix = ''
|
prefix = ''
|
||||||
if build_dir:
|
if build_dir:
|
||||||
|
Loading…
Reference in New Issue
Block a user