Speed up builds by increasing threads for builds
Speed up builds by increasing threads for builds

Generally, OpenStack CI infrastructure workers will typically have
8 cores therefore by hardcoding the threads to 4, we miss out on
valuable CPU power that can speed up builds.

This patch sets the number of threads when running tests between
the higher number of 4 (original value) or the number of CPU cores.

Change-Id: I857507d08d91ddb5e0bccb118d15f2e2bcf4da99

openstack/kolla,coolsvap/kolla,rahulunair/kolla,mrangana/kolla,stackforge/kolla,intel-onp/kolla,GalenMa/kolla,GalenMa/kolla,coolsvap/kolla,openstack/kolla,mrangana/kolla,stackforge/kolla,coolsvap/kolla,intel-onp/kolla,nihilifer/kolla,rahulunair/kolla,stackforge/kolla,nihilifer/kolla