test/lib/term: Export PCAP and DEBUG variables for tmux sessions globally

Otherwise, this would depend on the local tmux configuration.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2021-10-05 19:58:59 +02:00
parent 8ec5adc989
commit a26722b875

View file

@ -530,6 +530,7 @@ pause_continue() {
run_term() { run_term() {
export SHELL="/bin/sh" export SHELL="/bin/sh"
tmux set-option -g default-shell "/bin/sh" tmux set-option -g default-shell "/bin/sh"
tmux set-option -g update-environment "PCAP DEBUG"
if [ ${CI} -eq 1 ]; then if [ ${CI} -eq 1 ]; then
__xterm_done="$(mktemp)" __xterm_done="$(mktemp)"