Skip to content

Commit f877bae

Browse files
committed
workspace{builder,freeze} split fixtures, tweak flaky
1 parent b9eb738 commit f877bae

19 files changed

+313
-322
lines changed

tests/fixtures/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
from . import config, _util # noqa
1+
from . import _util # noqa
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
session_name: sampleconfig
2+
before_script: {script_complete}
3+
windows:
4+
- panes:
5+
- pane
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
session_name: sampleconfig
2+
before_script: {script_failed}
3+
windows:
4+
- panes:
5+
- pane
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
session_name: sampleconfig
2+
before_script: {script_not_exists}
3+
windows:
4+
- panes:
5+
- pane
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
session_name: test env vars
2+
start_directory: '~'
3+
environment:
4+
FOO: BAR
5+
PATH: /tmp
6+
windows:
7+
- layout: main-horizontal
8+
panes:
9+
- pane
10+
window_name: editor
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
session_name: sampleconfig
2+
start_directory: '~'
3+
windows:
4+
- window_name: focused window
5+
layout: main-horizontal
6+
focus: true
7+
panes:
8+
- shell_command:
9+
- cd ~
10+
- shell_command:
11+
- cd /usr
12+
focus: true
13+
- shell_command:
14+
- cd ~
15+
- echo "moo"
16+
- top
17+
- window_name: window 2
18+
panes:
19+
- shell_command:
20+
- top
21+
focus: true
22+
- shell_command:
23+
- echo "hey"
24+
- shell_command:
25+
- echo "moo"
26+
- window_name: window 3
27+
panes:
28+
- shell_command: cd /
29+
focus: true
30+
- pane
31+
- pane
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
session_name: sampleconfig
2+
start_directory: {HOME}
3+
windows:
4+
- options:
5+
- automatic_rename: on
6+
layout: tiled
7+
panes:
8+
- cd /usr/bin
9+
- cd /usr
10+
- cd /usr/sbin
11+
- cd {HOME}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
session_name: sampleconfig
2+
start_directory: '/usr'
3+
windows:
4+
- window_name: supposed to be /usr/bin
5+
window_index: 1
6+
start_directory: /usr/bin
7+
layout: main-horizontal
8+
options:
9+
main-pane-height: 50
10+
panes:
11+
- shell_command:
12+
- echo "hey"
13+
- shell_command:
14+
- echo "moo"
15+
- window_name: support to be /dev
16+
window_index: 2
17+
start_directory: /dev
18+
layout: main-horizontal
19+
panes:
20+
- shell_command:
21+
- pwd
22+
- shell_command:
23+
- echo "hey"
24+
- shell_command:
25+
- echo "moo"
26+
- window_name: cwd containing a space
27+
window_index: 3
28+
start_directory: {TEST_DIR}
29+
layout: main-horizontal
30+
panes:
31+
- shell_command:
32+
- pwd
33+
- shell_command:
34+
- echo "hey"
35+
- shell_command:
36+
- echo "moo"
37+
- window_name: testsa3
38+
window_index: 4
39+
layout: main-horizontal
40+
panes:
41+
- shell_command:
42+
- pwd
43+
- shell_command:
44+
- echo "hey"
45+
- shell_command:
46+
- echo "moo3"
47+
- window_name: cwd relative to start_directory since no rel dir entered
48+
window_index: 5
49+
layout: main-horizontal
50+
start_directory: ./
51+
panes:
52+
- shell_command:
53+
- pwd
54+
- shell_command:
55+
- echo "hey"
56+
- shell_command:
57+
- echo "moo3"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
session_name: sampleconfig
2+
start_directory: ./
3+
windows:
4+
- window_name: supposed to be /usr/bin
5+
start_directory: '/usr/bin'
6+
options:
7+
main-pane-height: 50
8+
panes:
9+
- shell_command:
10+
- echo "hey"
11+
- shell_command:
12+
- echo "moo"
13+
- window_name: support to be /dev
14+
start_directory: '/dev'
15+
layout: main-horizontal
16+
panes:
17+
- shell_command:
18+
- pwd
19+
- shell_command:
20+
- echo "hey"
21+
- shell_command:
22+
- echo "moo"
23+
- window_name: cwd containing a space
24+
start_directory: {TEST_DIR}
25+
layout: main-horizontal
26+
panes:
27+
- shell_command:
28+
- pwd
29+
- shell_command:
30+
- echo "hey"
31+
- shell_command:
32+
- echo "moo"
33+
- window_name: inherit start_directory which is rel to config file
34+
layout: main-horizontal
35+
panes:
36+
- shell_command:
37+
- pwd
38+
- shell_command:
39+
- echo "hey"
40+
- shell_command:
41+
- echo "moo3"
42+
- window_name: cwd relative to config file
43+
layout: main-horizontal
44+
start_directory: ./
45+
panes:
46+
- shell_command:
47+
- pwd
48+
- shell_command:
49+
- echo "hey"
50+
- shell_command:
51+
- echo "moo3"
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
session_name: sampleconfig
2+
start_directory: '~'
3+
suppress_history: false
4+
windows:
5+
- window_name: inHistory
6+
panes:
7+
- echo inHistory
8+
- window_name: isMissing
9+
suppress_history: true
10+
panes:
11+
- echo isMissing

0 commit comments

Comments
 (0)