Skip to content

Commit bd1bec4

Browse files
committed
#26 update paths and directories in workspacebuilder tests to work with osx.
1 parent f2af226 commit bd1bec4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

tmuxp/testsuite/test_workspacebuilder.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class TwoPaneTest(TmuxTestCase):
4242
window_name: editor
4343
- panes:
4444
- shell_command:
45-
- tail -F /var/log/syslog
45+
- tail | echo 'hi'
4646
window_name: logging
4747
- window_name: test
4848
panes:
@@ -123,7 +123,7 @@ class FocusAndPaneIndexTest(TmuxTestCase):
123123
- shell_command:
124124
- cd ~
125125
- shell_command:
126-
- cd /var
126+
- cd /usr
127127
focus: true
128128
- shell_command:
129129
- cd ~
@@ -176,7 +176,7 @@ def test_split_windows(self):
176176

177177
self.assertNotEqual(w.get('window_name'), 'man')
178178

179-
pane_path = '/var'
179+
pane_path = '/usr'
180180
for i in range(60):
181181
p = w.attached_pane()
182182
p.server._update_panes()
@@ -334,10 +334,10 @@ def test_blank_pane_count(self):
334334
class StartDirectoryTest(TmuxTestCase):
335335
yaml_config = """
336336
session_name: sampleconfig
337-
start_directory: '/var'
337+
start_directory: '/usr'
338338
windows:
339-
- window_name: supposed to be /var/log
340-
start_directory: '/var/log'
339+
- window_name: supposed to be /usr/bin
340+
start_directory: '/usr/bin'
341341
layout: main-horizontal
342342
options:
343343
main-pane-height: 50
@@ -388,7 +388,7 @@ def test_start_directory(self):
388388
builder.build(session=self.session)
389389

390390
assert(self.session == builder.session)
391-
for path in ['/var/log', '/dev/', '/var/', os.getcwd()]:
391+
for path in ['/usr/bin', '/dev/', '/usr/', os.getcwd()]:
392392
for window in self.session.windows:
393393
for p in window.panes:
394394
self.assertTrue(p.get('pane_start_path', path))
@@ -410,8 +410,8 @@ class PaneOrderingTest(TmuxTestCase):
410410
- automatic_rename: on
411411
layout: tiled
412412
panes:
413-
- cd /var/log
414-
- cd /sys
413+
- cd /usr/bin
414+
- cd /usr
415415
- cd /sbin
416416
- cd /tmp
417417
"""
@@ -420,8 +420,8 @@ def test_pane_order(self):
420420

421421
# test order of `panes` (and pane_index) above aganist pane_dirs
422422
pane_paths = [
423-
'/var/log',
424-
'/sys',
423+
'/usr/bin',
424+
'/usr',
425425
'/sbin',
426426
'/tmp'
427427
]

0 commit comments

Comments
 (0)