Adding prereq (#2925)

Co-authored-by: Carrie Roberts <clr2of8@gmail.com>
This commit is contained in:
AlbertoPellitteri
2024-09-15 00:18:49 +02:00
committed by GitHub
parent 94d85e4c96
commit 8cbea7db3e
+7
View File
@@ -66,6 +66,13 @@ atomic_tests:
description: Path of file to shred
type: path
default: /tmp/victim-shred.txt
dependencies:
- description: |
Check if file already exists
prereq_command: |
if [ -f "#{file_to_shred}" ]; then echo "File already exists"; else echo "File does NOT exist yet"; exit 1; fi
get_prereq_command: |
touch #{file_to_shred}
executor:
command: |
shred -u #{file_to_shred}