forked from premiere/premiere-libtorrent
don't pass in launcher argument when just building, that only works for unit tests
This commit is contained in:
parent
b3fd7b0bbf
commit
735d8213ac
|
@ -99,12 +99,19 @@ def run_tests(toolset, tests, features, options, test_dir, time_limit, increment
|
||||||
# for l in p.stdout: pass
|
# for l in p.stdout: pass
|
||||||
# p.wait()
|
# p.wait()
|
||||||
|
|
||||||
|
|
||||||
for t in tests:
|
for t in tests:
|
||||||
cmdline = ['bjam', '--out-xml=%s' % xml_file, '-l%d' % time_limit, '--abbreviate-paths', toolset] + options + feature_list
|
|
||||||
if t != '': cmdline.append(t)
|
if t != '': cmdline.append(t)
|
||||||
if t == '': t = os.path.split(os.getcwd())[1]
|
if t == '':
|
||||||
# print ''.join(cmdline)
|
t = os.path.split(os.getcwd())[1]
|
||||||
|
# we can't pass in a launcher when just building, that only
|
||||||
|
# works for actual unit tests
|
||||||
|
if 'launcher=valgrind' in options:
|
||||||
|
options = options[:]
|
||||||
|
options.remove('launcher=valgrind')
|
||||||
|
cmdline = ['bjam', '--out-xml=%s' % xml_file, '-l%d' % time_limit, '--abbreviate-paths', toolset] + options + feature_list
|
||||||
|
|
||||||
|
# print ' '.join(cmdline)
|
||||||
|
|
||||||
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE, cwd=test_dir)
|
p = subprocess.Popen(cmdline, stdout=subprocess.PIPE, cwd=test_dir)
|
||||||
output = ''
|
output = ''
|
||||||
for l in p.stdout:
|
for l in p.stdout:
|
||||||
|
|
Loading…
Reference in New Issue