From 66119c75edee18171a688f20f11b7516c21976c9 Mon Sep 17 00:00:00 2001 From: Simon McVittie <simon.mcvittie@collabora.co.uk> Date: Wed, 22 Jun 2016 18:23:47 +0100 Subject: [PATCH] apparmor-tumbler: log what we're going to do before we do it This typically makes logs from automated tests more useful. Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk> Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Differential Revision: https://phabricator.apertis.org/D3479 --- apparmor/tumbler/test-tumbler | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apparmor/tumbler/test-tumbler b/apparmor/tumbler/test-tumbler index 92ea813..daefaf9 100755 --- a/apparmor/tumbler/test-tumbler +++ b/apparmor/tumbler/test-tumbler @@ -2,6 +2,7 @@ # vim: tw=0 set -e +set -x TEST_DIR=$(cd $(dirname $0); pwd; cd - &>/dev/null) # We want to use the pre-existing session bus. @@ -12,4 +13,6 @@ exit_status=0 "${TEST_DIR}"/run-aa-test "${TEST_DIR}"/tumbler.normal.expected "${TEST_DIR}"/tumbler normal || exit_status=$? "${TEST_DIR}"/run-aa-test "${TEST_DIR}"/tumbler.malicious.expected "${TEST_DIR}"/tumbler malicious || exit_status=$? +# Output is boring below here +set +x exit "$exit_status" -- GitLab