From 5f097561d3955d2b5b7dd335fe1ca7aa7ef59a27 Mon Sep 17 00:00:00 2001 From: sousinha1997 Date: Mon, 23 Sep 2024 15:47:45 +0530 Subject: [PATCH] metadata updates --- reboot_measurement/reboot_measure.yml | 10 ++++++++++ reboot_measurement/run_reboot.sh | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/reboot_measurement/reboot_measure.yml b/reboot_measurement/reboot_measure.yml index 37c0865..ffdd3fc 100755 --- a/reboot_measurement/reboot_measure.yml +++ b/reboot_measurement/reboot_measure.yml @@ -116,6 +116,16 @@ command: "date -u +%s" register: reboot_end + - name: Generate test metadata + shell: "{{ config_info.user_parent_home_dir }}/{{ config_info.test_user }}/tools_bin/test_header_info \ + --front_matter \ + --results_file /tmp/reboot_boot_info/reboot_timings \ + --host {{ sysname }} \ + --sys_type {{ sys_type }} \ + --tuned {{ to_tuned_setting }} \ + --results_version {{ boot_version }} \ + --test_name {{ test_name }}" + - name: Report creation time lineinfile: path: "/tmp/reboot_boot_info/reboot_timings" diff --git a/reboot_measurement/run_reboot.sh b/reboot_measurement/run_reboot.sh index 7f9c4c4..bc1dbe3 100755 --- a/reboot_measurement/run_reboot.sh +++ b/reboot_measurement/run_reboot.sh @@ -4,6 +4,8 @@ # working_dir=`pwd` iterations=1 +boot_version="v1.0" +test_name = "reboot_measurement" usage() { @@ -133,5 +135,5 @@ done cd $working_dir for iteration in `seq 1 1 $iterations` do - ansible-playbook -i ./inventory --extra-vars "working_dir=${working_dir} iteration=${iteration} ansible_python_interpreter=auto" ${working_dir}/workloads/reboot_me*/reboot_measurement/reboot_measure.yml + ansible-playbook -i ./inventory --extra-vars "working_dir=${working_dir} iteration=${iteration} ansible_python_interpreter=auto sys_type=${sys_type} to_tuned_setting=${tuned_setting} sysname=${sysname} boot_version=${boot_version} test_name=${test_name}" ${working_dir}/workloads/reboot_me*/reboot_measurement/reboot_measure.yml done