Skip to content

Commit 4d04a43

Browse files
committed
use /etc instead of /usr/sbin which could be a symlink
1 parent 9692878 commit 4d04a43

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

tests/fixtures/workspacebuilder/pane_ordering.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ windows:
77
panes:
88
- cd /usr/bin
99
- cd /usr
10-
- cd /usr/sbin
10+
- cd /etc
1111
- cd {HOME}

tests/test_workspacebuilder.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def test_pane_order(session):
525525
pane_paths = [
526526
"/usr/bin",
527527
"/usr",
528-
"/usr/sbin",
528+
"/etc",
529529
os.path.realpath(os.path.expanduser("~")),
530530
]
531531

@@ -539,10 +539,10 @@ def test_pane_order(session):
539539

540540
window_count = len(session._windows) # current window count
541541
assert len(s._windows) == window_count
542+
542543
for w, wconf in builder.iter_create_windows(s):
543544
for p in builder.iter_create_panes(w, wconf):
544545
w.select_layout("tiled") # fix glitch with pane size
545-
p = p
546546
assert len(s._windows) == window_count
547547

548548
assert isinstance(w, Window)
@@ -563,9 +563,7 @@ def f():
563563
p.server._update_panes()
564564
return p.current_path == pane_path
565565

566-
retry_until(f)
567-
568-
assert p.current_path, pane_path
566+
assert retry_until(f)
569567

570568

571569
def test_window_index(session):

0 commit comments

Comments
 (0)