summaryrefslogtreecommitdiffstats
path: root/controller/bin/dtf-controller.in
Commit message (Collapse)AuthorAgeFilesLines
* controller: better logging feature for dtf-controllerPavel Raiskup2014-11-241-10/+73
| | | | | | | | | | | | | | | Use logging wrapper functions and log into dedicated file per sub-task (apart from STDERR/STDOUT as usual). * controller/bin/dtf-controller (log_info, log_error, log_die) (log_any): New logging functions. ($log_procid, $log_logfile, @log_buffer): New logging related variables. (load_runfile): Remove old comment. (subcommand): Use log_info instead of print. (child_task): Open child's logging file. Better parse check $run content. (main): Use log_info instead of print.
* controller: make the system setup configurablePavel Raiskup2014-11-201-0/+1
| | | | | | | | | | | | | | | | | | | | Add the --setup-playbook option for dtf-run-remote which allows us to submit configuration (or any) playbook which will be included into the default one, executed before actual testing. * controller/Makefile.am: s/fedora.yml/default.yml/. * controller/bin/dtf-controller.in: Call dtf-remote-run with --setup-playbook option. * controller/bin/dtf-run-remote.in: Fix the option parsing. Add new option --setup-playbook. (error): New function. (die): Use '$*' instead of '*@'. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Rename to default.yml. * controller/share/dtf-controller/ansible/playbooks/default.yml: Moved from fedora.yml. * controller/share/--/--/playbooks/include/prepare-testenv.yml: Removed hard-wired configuration.
* controller/dtf-controller: saner stdout logPavel Raiskup2014-11-031-1/+1
| | | | * controller/bin/dtf-controller.in: Print '\n' after error msg.
* controller: commit results even if 'run' failedPavel Raiskup2014-10-301-1/+0
| | | | | | | * controller/bin/dtf-controller.in (child_task): Do not exit if dtf-run-remote failed. This allows us commit at least log files. * controller/libexec/dtf-commit-results.in: Do not try to extract dtf.tar.gz archive if it does not exist (dtf-run-remote fail).
* controller: typofixPavel Raiskup2014-10-271-1/+1
| | | | | * controller/bin/dtf-controller.in: Really generate html instead of xml.
* controller: better connect with other utilitiesPavel Raiskup2014-10-271-14/+35
| | | | | | | | | | | | | | | | | * controller/bin/dtf-controller.in (subcommand): Generate stdout and stderr files separately. (child_task): Generate '*.err' and '*.out' logs for subcommands. Call dtf-run-remote with --distro/--distro-version options. Call the dtf-result-stats finally and save its output to results.html. (main): Simple debugging info and comment adjusting. * controller/libexec/dtf-commit-results.in: Tak three arguments now. * controller/libexec/dtf-result-stats.in: Better read the 'tester/run' output. * controller/share/dtf-controller/ansible/playbooks/fedora.yml: Run the 'run --force' instead of 'run' on remote host. * controller/share/dtf-controller/results-stats-templates/html.tmpl React on exit_status 2.
* controller: new perl wrapperPavel Raiskup2014-10-271-0/+133
Controller is able to read simple YAML configuration file with list of task to be performed in parallel (the task actually are run the testsuite remotely, commit results to DB, count statistics and upload results). * controller/bin/dtf-controller.in: New template for binary. * controller/libexec/dtf-commit-results.in: Copy whole result directory instead of 'dtf' subdir only. * controller/.gitignore: Ignore new binary. * controller/Makefile.am: Build dtf-commit-results.