File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 99import tempfile
1010import time
1111import queue
12+ import common
13+ import os
1214
1315from tools .tempfiles import try_delete
1416
1517NUM_CORES = None
1618
1719
1820def g_testing_thread (work_queue , result_queue , temp_dir ):
21+ print (common .EMTEST_LACKS_NATIVE_CLANG )
22+ print ("IN PROC" )
23+ for key , value in os .environ .items ():
24+ if key .startswith ("EM" ):
25+ print ("%s: %s" % (key ,value ))
1926 for test in iter (lambda : get_from_queue (work_queue ), None ):
2027 result = BufferedParallelTestResult ()
2128 test .set_temp_dir (temp_dir )
@@ -77,6 +84,7 @@ def reversed_tests(self):
7784 def init_processes (self , test_queue ):
7885 use_cores = min (self .max_cores , num_cores ())
7986 print ('Using %s parallel test processes' % use_cores )
87+ print (os .environ ['EMTEST_LACKS_NATIVE_CLANG' ])
8088 self .processes = []
8189 self .result_queue = multiprocessing .Queue ()
8290 self .dedicated_temp_dirs = [tempfile .mkdtemp () for x in range (use_cores )]
Original file line number Diff line number Diff line change @@ -262,8 +262,8 @@ def suite_for_module(module, tests):
262262 if not common .EMTEST_SAVE_DIR and not shared .DEBUG :
263263 has_multiple_tests = len (tests ) > 1
264264 has_multiple_cores = parallel_testsuite .num_cores () > 1
265- if suite_supported and has_multiple_tests and has_multiple_cores :
266- return parallel_testsuite .ParallelTestSuite (len (tests ))
265+ # if suite_supported and has_multiple_tests and has_multiple_cores:
266+ return parallel_testsuite .ParallelTestSuite (len (tests ))
267267 return unittest .TestSuite ()
268268
269269
@@ -393,6 +393,7 @@ def prepend_default(arg):
393393configure ()
394394
395395if __name__ == '__main__' :
396+ print ('main: ' + os .environ ['EMTEST_LACKS_NATIVE_CLANG' ])
396397 try :
397398 sys .exit (main (sys .argv ))
398399 except KeyboardInterrupt :
You can’t perform that action at this time.
0 commit comments