We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9044773 commit b161e64Copy full SHA for b161e64
meson_test.py
@@ -134,13 +134,16 @@ def run_tests(options, datafilename):
134
jsonlogfile = open(jsonlogfilename, 'w')
135
logfile.write('Log of Meson test suite run on %s.\n\n' % datetime.datetime.now().isoformat())
136
tests = pickle.load(open(datafilename, 'rb'))
137
+ if len(tests) == 0:
138
+ print('No tests defined.')
139
+ return
140
numlen = len('%d' % len(tests))
141
varname = 'MESON_TESTTHREADS'
142
if varname in os.environ:
143
try:
144
num_workers = int(os.environ[varname])
145
except ValueError:
- write_log('Invalid value in %s, using 1 thread.' % varname)
146
+ print('Invalid value in %s, using 1 thread.' % varname)
147
num_workers = 1
148
else:
149
num_workers = multiprocessing.cpu_count()
0 commit comments