From 90ebb3bd5e917ae814c311494edb281c1eeb2639 Mon Sep 17 00:00:00 2001 From: Rich Megginson Date: Mon, 25 Mar 2024 17:34:28 -0600 Subject: [PATCH] test: Fix trusted test - use python script fapolicyd does not work with shell scripts. In addition, the shell script was broken. Instead, use a python script. Signed-off-by: Rich Megginson --- tests/tests_trusted_execution.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tests_trusted_execution.yml b/tests/tests_trusted_execution.yml index 6a2f7ec..b755dd8 100644 --- a/tests/tests_trusted_execution.yml +++ b/tests/tests_trusted_execution.yml @@ -39,9 +39,10 @@ - name: Create shell executables copy: content: | - #/bin/bash + #!/usr/bin/python # this is item {{ item }} - exit 0 + import sys + sys.exit(0) dest: "{{ item }}" mode: "0755" loop: