From 5a271f06ce3fd3266a796ad80143ef1f47c73f43 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Tue, 19 Mar 2019 15:29:13 +0000 Subject: [PATCH] scripts: Allow data collection script output to be hidden Use a clever HTML trick to allow the output of the data collection script to be hidden / unhidden in the github.com interface. See the example at the top of https://github.com/kata-containers/runtime/issues/1347. Fixes #1386. Signed-off-by: James O. D. Hunt --- data/kata-collect-data.sh.in | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/data/kata-collect-data.sh.in b/data/kata-collect-data.sh.in index 48052db7ae..8d703f4433 100644 --- a/data/kata-collect-data.sh.in +++ b/data/kata-collect-data.sh.in @@ -672,8 +672,27 @@ read_osbuilder_file() cat "$file" } +show_header() +{ + cat < +Show $script_name details +

+EOT +} + +show_footer() +{ + cat < + +EOT +} + show_details() { + show_header + show_meta show_runtime show_runtime_configs @@ -683,6 +702,8 @@ show_details() show_log_details show_container_mgr_details show_package_versions + + show_footer } main()