File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ TRACK=java
44TRACK_REPO=" $TRACK "
55TRACK_SRC_EXT=" java"
66CPU_CORES=` getconf NPROCESSORS_ONLN 2> /dev/null || getconf _NPROCESSORS_ONLN 2> /dev/null || echo 1`
7- EXERCISE_TO_SOLVE= $1
7+ EXERCISES_TO_SOLVE= $@
88
99on_exit () {
1010 echo " >>> on_exit()"
@@ -333,10 +333,12 @@ main() {
333333 # Create a CLI install and config just for this build; this script does not use your CLI install.
334334 configure_exercism_cli " ${exercism_home} " " ${exercism_configfile} " " ${xapi_port} "
335335
336- if [[ ${EXERCISE_TO_SOLVE} == " " ]]; then
336+ if [[ $EXERCISES_TO_SOLVE == " " ]]; then
337337 solve_all_exercises " ${exercism_home} " " ${exercism_configfile} "
338338 else
339- solve_single_exercise " ${exercism_home} " " ${exercism_configfile} " " ${EXERCISE_TO_SOLVE} "
339+ for exercise in $EXERCISES_TO_SOLVE
340+ do solve_single_exercise " ${exercism_home} " " ${exercism_configfile} " " ${exercise} "
341+ done
340342 fi
341343}
342344
Original file line number Diff line number Diff line change @@ -12,9 +12,13 @@ for file in $modded_files
1212 do if [[ $file2 == exercises* ]]
1313 then modded_exercise=${file2# exercises/ }
1414 modded_exercise=${modded_exercise%%/* }
15+ if [[ $last_modded_exercise != $modded_exercise ]]
16+ then modded_exercises=$modded_exercises$modded_exercise $' \n '
17+ fi
18+ last_modded_exercise=$modded_exercise
1519 fi
1620 done
17- bin/journey-test.sh $modded_exercise
21+ bin/journey-test.sh $modded_exercises
1822 break
1923 fi
2024done
You can’t perform that action at this time.
0 commit comments