Skip to content

Commit 125f675

Browse files
committed
report: wrap 'host_info' block into section
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
1 parent be5cbd9 commit 125f675

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/engines/hcktest/tests.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Tests
1919
SUMMARY_LOG_FILE = 'logs.txt'
2020
RESULTS_FILE = 'results.html'
2121
RESULTS_YAML = 'results.yaml'
22-
RESULTS_REPORT_SECTIONS = %w[chart guest_info rejected_test url].freeze
22+
RESULTS_REPORT_SECTIONS = %w[chart guest_info host_info rejected_test url].freeze
2323
STUDIO_PACKAGE_ASSETS_PATH = 'C:\\AutoHCK\\PackageAssets'
2424

2525
DEFAULT_FILE_ACTION_REMOTE_PATH = 'C:\\'

lib/templates/report.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@
3030
<% end %>
3131
</div>
3232
<% end %>
33+
<% if sections.include? 'host_info' %>
3334
<div class="col col-4">
3435
<p class="text-center">Host system information</p>
3536
<% system_info['host'].each do |k, v| %>
3637
<p><%= k %>: <%= v %></p>
3738
<% end %>
3839
</div>
40+
<% end %>
3941
</div>
4042
<div class="row pb-3">
4143
<p>Report generation time: <%= Time.now %></p>

0 commit comments

Comments
 (0)