summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranonym <anonym@riseup.net>2017-10-07 14:10:13 +0200
committeranonym <anonym@riseup.net>2017-10-09 14:13:41 +0200
commit7eec8563807ebcf8d65f30b20f9b02f93e26ed70 (patch)
tree02e95dbc107936d270ff6b571d303fadbae3aec2
parente429a3deaf40c03a07d07d24f63f8532e1167e80 (diff)
Test suite: Don't flood the debug logger with the journal contents.
We log all data received for remote shell commands, but not for file transfers.
-rw-r--r--features/support/hooks.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/features/support/hooks.rb b/features/support/hooks.rb
index 4b4521f..3a22844 100644
--- a/features/support/hooks.rb
+++ b/features/support/hooks.rb
@@ -134,7 +134,8 @@ end
def save_journal(path)
File.open("#{path}/systemd.journal", 'w') { |file|
- file.write($vm.execute('journalctl -a --no-pager').stdout)
+ $vm.execute('journalctl -a --no-pager > /tmp/systemd.journal')
+ file.write($vm.file_content('/tmp/systemd.journal'))
}
save_failure_artifact("Systemd journal", "#{path}/systemd.journal")
end