Merge remote-tracking branch 'origin/quattro' into harden-notification-exec-argv

# Conflicts:
#	test/shell.d/notification-send-test.sh
This commit is contained in:
Ryan Hughes
2026-08-23 18:31:42 -04:00
5 changed files with 163 additions and 3 deletions
+6 -1
View File
@@ -52,10 +52,15 @@ notifications=$(<"$WORKDIR/notifications")
fail "taildrop receive saves incoming files" "$(ls "$downloads")"
pass "taildrop receive saves incoming files"
grep -qF -- "Received photo.png Saved to $downloads --image $downloads/photo.png" <<<"$notifications" ||
grep -qF -- "Received photo.png Saved to $downloads -u critical --image $downloads/photo.png" <<<"$notifications" ||
fail "taildrop receive previews received images" "$notifications"
pass "taildrop receive previews received images"
while IFS= read -r line; do
[[ $line == *"-u critical"* ]] || fail "taildrop receive announcements wait to be answered" "$line"
done <<<"$notifications"
pass "taildrop receive announcements wait to be answered"
grep -q "^Received notes with space.pdf .* -g " <<<"$notifications" ||
fail "taildrop receive announces other files with a glyph" "$notifications"
pass "taildrop receive announces other files with a glyph"