Update .gitea/workflows/test.yml
Run CI Tests / test (push) Failing after 48s

This commit is contained in:
2025-08-23 19:07:35 +02:00
parent 78903146fc
commit fdfbe8c2b5
+1 -33
View File
@@ -73,55 +73,23 @@ jobs:
dbus-run-session -- bash -c '
set -e
set -x
exec >>"$LOG_FILE" 2>&1
echo "⚡ Running tests and generating reports..."
# PRE
echo "▶️ Running pre-test commands..."
Xvfb :99 -screen 0 1024x768x24 &
XVFB_PID=$!
export DISPLAY=:99
for i in {1..5}; do
xdpyinfo -display :99 >/dev/null 2>&1 && break
sleep 1
done
dunst -print &
DUNST_PID=$!
sleep 1
# MAIN via tmux
echo "⏩ Running tests in tmux..."
cat > tmux_runner.sh <<EOS
#!/bin/bash
set -e
set -x
TMUX_TTY=\$(tmux list-panes -t ci -F "#{pane_tty}" || true)
export TMUX_TTY
eval "\$CMD"
tmux wait-for -S done
EOS
chmod +x tmux_runner.sh
tmux new-session -d -s ci ./tmux_runner.sh
tmux new-session -d -s ci "bash -lc 'eval \"$CMD\"; tmux wait-for -S done'"
sleep 1
tmux wait-for done
# POST
echo "🧹 Cleaning up..."
kill $DUNST_PID || true
kill $XVFB_PID || true
sleep 1
echo "▶️ END"
'
test-files: "tests/test_utils_dbusnotify.py"
continue-on-error: true