Update .gitea/workflows/test.yml
Run CI Tests / test (push) Failing after 1m2s

This commit is contained in:
2025-08-25 10:40:00 +02:00
parent 6e9c487454
commit 9546e7dfe3
+25 -23
View File
@@ -70,36 +70,38 @@ jobs:
ls ~/Maildir/new
test-run-cmd: |
dbus-run-session -- bash <<'EOS'
set -e
set -x
dbus-run-session -- bash -c '
set -e
set -x
echo "⚡ Running tests and generating reports..."
# PRE
Xvfb :99 -screen 0 1024x768x24 &
XVFB_PID=$!
export DISPLAY=:99
# PRE
Xvfb :99 -screen 0 1024x768x24 &
XVFB_PID=$!
export DISPLAY=:99
for i in {1..5}; do
xdpyinfo -display :99 >/dev/null 2>&1 && break
for i in {1..5}; do
xdpyinfo -display :99 >/dev/null 2>&1 && break
sleep 1
done
dunst -print &
DUNST_PID=$!
sleep 1
done
dunst -print &
DUNST_PID=$!
sleep 1
# MAIN via tmux
tmux new-session -d -s ci "bash -lc \"eval \\\"$CMD\\\"; tmux wait-for -S done\""
sleep 1
tmux wait-for done
# MAIN via tmux
tmux new-session -d -s ci "bash -lc 'eval \"$CMD\"; tmux wait-for -S done'"
sleep 1
tmux wait-for done
# POST
kill $DUNST_PID || true
kill $XVFB_PID || true
sleep 1
# POST
kill $DUNST_PID || true
kill $XVFB_PID || true
sleep 1
echo "▶️ END"
'
echo "▶️ END"
EOS
test-files: "tests/test_utils_dbusnotify.py"