@@ -146,39 +146,6 @@ function performance_setup_normal() {
146146 echo " >>> stopsection <<<"
147147}
148148
149- # Returns (by nameref) an array with the command needed to init the Performance site.
150- function performance_initcmd() {
151- local -n cmd=$1
152- # We need to determine the init suite to use.
153- local initsuite=" "
154-
155-
156- # Build the complete init command.
157- cmd=(
158- php admin/cli/install_database.php \
159- --agree-license \
160- --fullname=" Moodle Performance Test" \
161- --shortname=" moodle" \
162- --adminuser=admin \
163- --adminpass=adminpass
164- )
165- }
166-
167- # Returns (by nameref) an array with the command needed to init the Performance site.
168- function performance_perftoolcmd() {
169- local -n cmd=$1
170- # We need to determine the init suite to use.
171- local initsuite=" "
172-
173- # Build the complete init command.
174- cmd=(
175- php public/local/performancetool/generate_test_data.php \
176- --size=" ${SITESIZE} " \
177- --planfilespath=" /shared" \
178- --quiet=" false"
179- )
180- }
181-
182149# Performance job type run.
183150function performance_run() {
184151
@@ -267,6 +234,38 @@ function performance_teardown() {
267234 cp -f " ${DATADIR} /rundata.json" " ${targetpath} "
268235}
269236
237+ # Returns (by nameref) an array with the command needed to init the Performance site.
238+ function performance_initcmd() {
239+ local -n cmd=$1
240+ # # We need to determine the init suite to use.
241+ # local initsuite=""
242+
243+
244+ # Build the complete init command.
245+ cmd=(
246+ php admin/cli/install_database.php \
247+ --agree-license \
248+ --fullname=" Moodle Performance Test" \
249+ --shortname=" moodle" \
250+ --adminuser=admin \
251+ --adminpass=adminpass
252+ )
253+ }
254+
255+ # Returns (by nameref) an array with the command needed to init the Performance site.
256+ function performance_perftoolcmd() {
257+ local -n cmd=$1
258+ # # We need to determine the init suite to use.
259+ # local initsuite=""
260+
261+ # Build the complete init command.
262+ cmd=(
263+ php public/local/performancetool/generate_test_data.php \
264+ --size=" ${SITESIZE} " \
265+ --planfilespath=" /shared" \
266+ --quiet=" false"
267+ )
268+ }
270269
271270# Calculate the command to run for Performance main execution,
272271# returning it in the passed array parameter.
0 commit comments