зеркало из https://github.com/microsoft/git.git
Merge branch 'sg/test-stress-jobs'
Test framework fix. * sg/test-stress-jobs: test-lib: prevent '--stress-jobs=X' from being ignored
This commit is contained in:
Коммит
4513f6bbb1
|
@ -163,8 +163,8 @@ parse_option () {
|
||||||
;;
|
;;
|
||||||
--stress-jobs=*)
|
--stress-jobs=*)
|
||||||
stress=t;
|
stress=t;
|
||||||
stress=${opt#--*=}
|
stress_jobs=${opt#--*=}
|
||||||
case "$stress" in
|
case "$stress_jobs" in
|
||||||
*[!0-9]*|0*|"")
|
*[!0-9]*|0*|"")
|
||||||
echo "error: --stress-jobs=<N> requires the number of jobs to run" >&2
|
echo "error: --stress-jobs=<N> requires the number of jobs to run" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -262,9 +262,9 @@ then
|
||||||
: # Don't stress test again.
|
: # Don't stress test again.
|
||||||
elif test -n "$stress"
|
elif test -n "$stress"
|
||||||
then
|
then
|
||||||
if test "$stress" != t
|
if test -n "$stress_jobs"
|
||||||
then
|
then
|
||||||
job_count=$stress
|
job_count=$stress_jobs
|
||||||
elif test -n "$GIT_TEST_STRESS_LOAD"
|
elif test -n "$GIT_TEST_STRESS_LOAD"
|
||||||
then
|
then
|
||||||
job_count="$GIT_TEST_STRESS_LOAD"
|
job_count="$GIT_TEST_STRESS_LOAD"
|
||||||
|
|
Загрузка…
Ссылка в новой задаче