Skip to content

Commit d611a2a

Browse files
authored
start tests sessions with a blank config and /bin/sh (#311)
* test tests sessions with a blank config and /bin/sh on start * Add 3.2a to testbed
1 parent 64556e3 commit d611a2a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version: [ '2.7', '3.x' ]
14-
tmux-version: [ '2.6', '2.7', '2.8', '3.0a', '3.1b', 'master' ]
14+
tmux-version: [ '2.6', '2.7', '2.8', '3.0a', '3.1b', '3.2a', 'master' ]
1515
steps:
1616
- uses: actions/checkout@v1
1717

tests/conftest.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,14 @@ def session(server):
4848
session_name = 'tmuxp'
4949

5050
if not server.has_session(session_name):
51-
server.cmd('new-session', '-d', '-s', session_name)
51+
server.cmd(
52+
'-f', '/dev/null', # use a blank config to reduce side effects
53+
'new-session',
54+
'-d', # detached
55+
'-s', session_name,
56+
'/bin/sh', # use /bin/sh as a shell to reduce side effects
57+
# normally, it'd be -c, but new-session is special
58+
)
5259

5360
# find current sessions prefixed with tmuxp
5461
old_test_sessions = [

0 commit comments

Comments
 (0)