diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 27183f95..9187cfb6 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -70,6 +70,7 @@ jobs: ls ~/Maildir/new session-wrapper: "dbus-run-session --" + pre-test-cmd: | Xvfb :99 -screen 0 1024x768x24 & XVFB_PID=$! @@ -77,12 +78,22 @@ jobs: dunst -print & DUNST_PID=$! sleep 1 - test-run-cmd: tmux new-session -d -s ci "bash -lc 'eval \"$CMD\"; tmux wait-for -S done'" + + test-run-cmd: | + tmux new-session -d -s ci " + TMUX_TTY=\$(tmux list-panes -t ci -F '#{pane_tty}'); + export TMUX_TTY; + $CMD >> outputs/full-output.log 2>&1; + tmux wait-for -S done + " + + sleep 1 + tmux wait-for done + post-test-cmd: | kill $DUNST_PID || true kill $XVFB_PID || true sleep 1 - tmux wait-for done test-files: "tests/test_utils_dbusnotify.py"