Skip to content

Commit fde52fd

Browse files
authored
Rename fail_immediately variable to fail-immediately
Or rename `fail-immediately` to `fail_immediately`. But this way also needs to modify the `readme`
1 parent 907d77e commit fde52fd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/run_generator_tests.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -386,13 +386,13 @@ print_usage()
386386
####################
387387

388388
# whether or not to exit after first test has failed
389-
fail_immediately=
390-
[[ "${1}" == "--fail_immediately" ]] && fail_immediately=1
389+
fail-immediately=
390+
[[ "${1}" == "--fail-immediately" ]] && fail-immediately=1
391391

392392
while [ "$1" != "" ] ; do
393393
case $1 in
394-
--fail_immediately ) shift
395-
fail_immediately=1
394+
--fail-immediately ) shift
395+
fail-immediately=1
396396
;;
397397
--keep-artifacts ) shift
398398
KEEP_ONLY_LOGS=0
@@ -504,7 +504,7 @@ for ini in ${ini_files_full_paths} ; do
504504
RET=${?}
505505
if [[ "${RET}" != "0" ]] ; then
506506
ret_global=${RET}
507-
[[ "${fail_immediately}" == "1" ]] && break
507+
[[ "${fail-immediately}" == "1" ]] && break
508508
fi
509509
done
510510

@@ -531,7 +531,7 @@ while (( completed < total_tests )) ; do
531531
if [[ "${RET}" != "0" ]] ; then
532532
echo_red "Test ${test_num}: ${ini_path} with generator ${generator} -> FAILED"
533533
ret_global=${RET}
534-
if [[ "${fail_immediately}" == "1" ]] ; then
534+
if [[ "${fail-immediately}" == "1" ]] ; then
535535
# Kill remaining background jobs
536536
for remaining_pid in "${test_pids[@]}" ; do
537537
kill ${remaining_pid} 2>/dev/null

0 commit comments

Comments
 (0)