Skip to content

Commit

Permalink
Updated testinfra tmux script check
Browse files Browse the repository at this point in the history
  • Loading branch information
zenmonkeykstop committed Mar 3, 2021
1 parent ff514c8 commit 455f270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions molecule/testinfra/common/test_user_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ def test_sudoers_tmux_env(host):
pid=$(pgrep --newest tmux)
if test -n "$pid"
then
/proc/$pid/exe attach
/proc/$pid/exe -u attach
fi
return 1
}
if test -z "$TMUX"
then
(tmux attach || tmux_attach_via_proc || tmux new-session)
(tmux -u attach || tmux_attach_via_proc || tmux -u new-session)
fi"""
)
assert host_file.content_string.strip() == expected_content
Expand Down

0 comments on commit 455f270

Please sign in to comment.