moodlehq / moodle-performance-comparison

Set of shell scripts to run Moodle performance tests using different hardware and configurations and compare results.
GNU General Public License v2.0
75 stars 39 forks source link

Before run should stop on errors #13

Closed FMCorz closed 10 years ago

FMCorz commented 10 years ago

For instance, when the /your/directory/with/a/lot/of/free/space/ is not configured, it still executes:

fred@fred:~/www/moodle-performance-comparison$ ./compare.sh

Installing Moodle (d45e65ccadbf4097a970655941ac1c5cae17f26d) Moodle site configuration finished successfully. mkdir: cannot create directory /your/directory/with/a/lot/of/free/space': No such file or directory Creating Moodle (d45e65ccadbf4097a970655941ac1c5cae17f26d) database and dataroot backups cp: cannot create directory/your/directory/with/a/lot/of/free/space/dataroot_backup_201310091356': No such file or directory ./before_run_setup.sh: line 190: /your/directory/with/a/lot/of/free/space/database_backup_201310091356.sql: No such file or directory Upgrading Moodle (d45e65ccadbf4097a970655941ac1c5cae17f26d) to d45e65c No upgrade needed for the installed version 2.6dev (Build: 20130927) (2013092700). Thanks for coming anyway!

'Before' run setup finished successfully.

dmonllao commented 10 years ago

https://github.com/moodlehq/moodle-performance-comparison/commit/e10b44fedb858a8f4ec6d673f1e1b33b0bc95329