Changeset 34e1494 for tests/pybin


Ignore:
Timestamp:
Sep 13, 2019, 2:04:11 PM (2 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
arm-eh, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
158b026, 2cb8577, 970141d, b2a37b0
Parents:
15f9c8e
Message:

Clean up test make file and add autodetection of number of hosts by test.py

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/tools.py

    r15f9c8e r34e1494  
    261261                        os.write(int(make_jobs_fds.group(3)), tokens)
    262262                else :
    263                         options.jobs = multiprocessing.cpu_count()
     263                        if settings.distribute:
     264                                ret, jstr = sh("distcc", "-j", output_file=subprocess.PIPE, ignore_dry_run=True)
     265                                if ret == 0:
     266                                        options.jobs = int(jstr.strip())
     267                                else :
     268                                        options.jobs = multiprocessing.cpu_count()
     269                        else:
     270                                options.jobs = multiprocessing.cpu_count()
    264271        else :
    265272                force = True
Note: See TracChangeset for help on using the changeset viewer.