Skip to content

Commit 7b030d1

Browse files
committed
Add testcase for start_directory with a space
1 parent f846e8e commit 7b030d1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tmuxp/testsuite/workspacebuilder.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,16 @@ class StartDirectoryTest(TmuxTestCase):
384384
- echo "hey"
385385
- shell_command:
386386
- echo "moo"
387+
- window_name: cwd containing a space
388+
start_directory: /tmp/foo bar
389+
layout: main-horizontal
390+
panes:
391+
- shell_command:
392+
- pwd
393+
- shell_command:
394+
- echo "hey"
395+
- shell_command:
396+
- echo "moo"
387397
- window_name: testsa3
388398
layout: main-horizontal
389399
panes:
@@ -416,7 +426,7 @@ def test_start_directory(self):
416426
builder.build(session=self.session)
417427

418428
assert(self.session == builder.session)
419-
dirs = ['/usr/bin', '/dev', '/usr', os.getcwd()]
429+
dirs = ['/usr/bin', '/dev', '/tmp/foo bar', '/usr', os.getcwd()]
420430
for path, window in zip(dirs, self.session.windows):
421431
for p in window.panes:
422432
self.assertEqual(p.get('pane_start_path'), path)

0 commit comments

Comments
 (0)