aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
diff options
context:
space:
mode:
authorBryan Quigley <bryan.quigley@canonical.com>2019-10-07 17:36:46 -0700
committerBryn M. Reeves <bmr@redhat.com>2019-12-11 16:40:57 +0000
commit745b4a236a0255ea76ffd273f3e2028ac46b4a89 (patch)
treeb460b71dc5ae7b2b209ea6b0d7b4d42e7b993e64 /.travis.yml
parent9b81a642baeb5e230a55bab7fc983fc421856298 (diff)
downloadsos-745b4a236a0255ea76ffd273f3e2028ac46b4a89.tar.gz
[logs] Substancial rewrite ending RH/U/D differences
--all-logs totally broke due to extra s in get_options, this resulted in me trying to fix it, but it's simply grown too complicated IMHO. We're duplicating functionality differently in the RH and Ubuntu/Debian sections. Logs.py changes: Dropped the log_days option as it's confusing with since. Use journal if persistant, otherwise don't collect it. If all-logs collect full raw journal insteaf of verbose as it's the same size but collects more info and is easier to parse. Still collecting catalog for this/last boot ignoring since. RH request. Collect message/secure no matter what. Rh specific. Collect first 3 syslog/kern/auth only if not-journal. Default to just stop at 100mb limit jounral limit (which is enforced outside of plugin). Also implement some basic "did it error" travis checks for the above. Resolves: #1822 Signed-off-by: Bryan Quigley <bryan.quigley@canonical.com>
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 1b54c599..86f5168b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -27,6 +27,9 @@ script:
- "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --help"
- "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport -l --config-file=sos.conf"
- "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --config-file=sos.conf 2> errors | tee batch_output"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --all-logs --config-file=sos.conf 2> errors | tee batch_output"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --since=20191007 --config-file=sos.conf 2> errors | tee batch_output"
+ - "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --all-logs --since=20191007 --config-file=sos.conf 2> errors | tee batch_output"
- "[[ ! -s errors ]]"
- "cat errors"
- "sudo ~/virtualenv/python$TRAVIS_PYTHON_VERSION/bin/python ./sosreport --batch --build --config-file=sos.conf"