FocusAndPaneIndexTest and PaneOrderingTest in test_workspacebuilder.py fail to pass under OS X for 2 reasons:
/sys does not exist in OS X
/var is symlinked to /private/var and pane.get('pane_current_path') returns the resolved path, so assertEqual fails with AssertionError: u'/private/var' != '/var'. The same also stands for /tmp.
I tried to fix this, either by manually resolving the paths in the test case with os.path.realpath, or by changing the paths in the test case and the yaml configuration to /usr. In both cases there were some weird issues with running the tests.
When I run one of the failing tests alone, it works with either fix. If I run the whole suite, the test cases failed randomly (not always!) because pane.get('pane_current_path') returned either my cwd (the root of the repo) or my home directory.
FocusAndPaneIndexTest and PaneOrderingTest in test_workspacebuilder.py fail to pass under OS X for 2 reasons:
/sysdoes not exist in OS X/varis symlinked to/private/varandpane.get('pane_current_path')returns the resolved path, soassertEqualfails withAssertionError: u'/private/var' != '/var'. The same also stands for/tmp.I tried to fix this, either by manually resolving the paths in the test case with
os.path.realpath, or by changing the paths in the test case and the yaml configuration to/usr. In both cases there were some weird issues with running the tests.When I run one of the failing tests alone, it works with either fix. If I run the whole suite, the test cases failed randomly (not always!) because
pane.get('pane_current_path')returned either mycwd(the root of the repo) or my home directory.