Altering the > to -gt to check number of processors
Using > to check if a variable is greater then another doesn't seems to work among distros. Using -gt instead of > ensure that will work in different distros that may implement different bash versions Change-Id: Ie270ad8aa512807fbce3052018e9ce0db7c238b4
This commit is contained in:
@@ -174,7 +174,7 @@ export DEVSTACK_GATE_CONFIGDRIVE=${DEVSTACK_GATE_CONFIGDRIVE:-1}
|
||||
|
||||
# Set the number of threads to run tempest with
|
||||
DEFAULT_CONCURRENCY=$(nproc)
|
||||
if [ ${DEFAULT_CONCURRENCY} > 3 ] ; then
|
||||
if [ ${DEFAULT_CONCURRENCY} -gt 3 ] ; then
|
||||
DEFAULT_CONCURRENCY=$[${DEFAULT_CONCURRENCY} / 2]
|
||||
fi
|
||||
export TEMPEST_CONCURRENCY=${TEMPEST_CONCURRENCY:-${DEFAULT_CONCURRENCY}}
|
||||
|
||||
Reference in New Issue
Block a user