Skip to content

Commit

Permalink
metadata updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sousinha1997 committed Sep 23, 2024
1 parent 26e7cf4 commit 5f09756
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions reboot_measurement/reboot_measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 3 additions & 1 deletion reboot_measurement/run_reboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#
working_dir=`pwd`
iterations=1
boot_version="v1.0"
test_name = "reboot_measurement"

usage()
{
Expand Down Expand Up @@ -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

0 comments on commit 5f09756

Please sign in to comment.