Skip to content

Commit 4513f6b

Browse files
committed
Merge branch 'sg/test-stress-jobs'
Test framework fix. * sg/test-stress-jobs: test-lib: prevent '--stress-jobs=X' from being ignored
2 parents dfc3c2b + 134768c commit 4513f6b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/test-lib.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ parse_option () {
163163
;;
164164
--stress-jobs=*)
165165
stress=t;
166-
stress=${opt#--*=}
167-
case "$stress" in
166+
stress_jobs=${opt#--*=}
167+
case "$stress_jobs" in
168168
*[!0-9]*|0*|"")
169169
echo "error: --stress-jobs=<N> requires the number of jobs to run" >&2
170170
exit 1
@@ -262,9 +262,9 @@ then
262262
: # Don't stress test again.
263263
elif test -n "$stress"
264264
then
265-
if test "$stress" != t
265+
if test -n "$stress_jobs"
266266
then
267-
job_count=$stress
267+
job_count=$stress_jobs
268268
elif test -n "$GIT_TEST_STRESS_LOAD"
269269
then
270270
job_count="$GIT_TEST_STRESS_LOAD"

0 commit comments

Comments
 (0)