Skip to content
Snippets Groups Projects
Commit 17698916 authored by Simon McVittie's avatar Simon McVittie
Browse files

apparmor-tumbler: use set -e


Debian Policy §10.4 says "Every script should use set -e or check
the exit status of every command", which is just generally good
advice.

Reviewed-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Signed-off-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D3478
parent f72a8892
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
# vim: tw=0
set -e
TEST_DIR=$(cd $(dirname $0); pwd; cd - &>/dev/null)
# We want to use the pre-existing session bus.
export LAUNCH_DBUS="no"
"${TEST_DIR}"/run-aa-test "${TEST_DIR}"/tumbler.normal.expected "${TEST_DIR}"/tumbler normal
"${TEST_DIR}"/run-aa-test "${TEST_DIR}"/tumbler.malicious.expected "${TEST_DIR}"/tumbler malicious
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=$?
exit "$exit_status"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment