linux-system-roles / auto-maintenance

Linux system roles wide automated repo maintenance
MIT License
25 stars 15 forks source link

fix some issues found in testing #294

Closed richm closed 1 year ago

richm commented 1 year ago

found some variables that were not marked local and could have been leaking. The only output by default now is error output - use LOG_LEVEL to change the verbosity. The script will now continue if it hits errors - be sure to capture all of the output. There was an issue with rhc skipping some fact gathering.

The script can now operate locally. You can download the beaker job xml to a local directory e.g.

mkdir -p /var/tmp/check
curl -s -L -o /var/tmp/check/beaker.xml http://beaker...../job.xml
./check-fact-gather-results.sh /var/tmp/check/beaker.xml

This will download all of the test run logs to /var/tmp/check if they do not already exist. If they do already exist, then the script will use the local files. This will greatly speed up processing if you have to run the script multiple times e.g. if you find a bug in the script.