Skip to content

Commit

Permalink
check if file exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sousinha1997 committed Sep 27, 2024
1 parent d66b19c commit 684fb85
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions reboot_measurement/reboot_measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,18 @@
command: "date -u +%s"
register: reboot_end

- name: Ensure tmp parent directories exist
file:
path: "/tmp/reboot_boot_info"
state: directory
mode: '0755'

- name: Create tmp reboot_timings file
file:
path: "/tmp/reboot_boot_info/reboot_timings"
state: touch
mode: '0644'

- name: Generate test metadata
shell: "{{ config_info.user_parent_home_dir }}/{{ config_info.test_user }}/tools_bin/test_header_info \
--front_matter \
Expand Down

0 comments on commit 684fb85

Please sign in to comment.