From 63c31bc68e9a1f1a2fdee82024e092568510a94b Mon Sep 17 00:00:00 2001 From: Omarchybot <317366263+omarchybot@users.noreply.github.com> Date: Sat, 3 Oct 2026 07:06:39 +0200 Subject: [PATCH] Give the audio output sink test the standard header docs/testing.md asks every shell test to start with set -euo pipefail and source base-test.sh through BASH_SOURCE; without it a failed mktemp leaves test_home empty and reset_scenario goes on to rm -rf /data. Co-Authored-By: Claude Opus 5.5 --- test/shell.d/audio-output-sink-test.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/shell.d/audio-output-sink-test.sh b/test/shell.d/audio-output-sink-test.sh index 5b7505bf..1ff5f7c1 100755 --- a/test/shell.d/audio-output-sink-test.sh +++ b/test/shell.d/audio-output-sink-test.sh @@ -1,6 +1,8 @@ #!/bin/bash -source "$(dirname "$0")/base-test.sh" +set -euo pipefail + +source "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)/base-test.sh" test_home=$(mktemp -d) test_bin=$(mktemp -d)