Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bash support on catalina + modernize #15

Merged
merged 5 commits into from
Jan 9, 2020
Merged

Fix bash support on catalina + modernize #15

merged 5 commits into from
Jan 9, 2020

Conversation

taldcroft
Copy link
Member

@taldcroft taldcroft commented Jan 5, 2020

When starting bash on MacOSX catalina one now gets a message that zsh is now the default interpreter shell. This breaks Ska.Shell completely, which I first noticed trying to run ska_testr.

This PR fixes this, but to be honest I don't 100% understand why Ska.Shell was ever working at all. The first thing it does (in master) when starting a shell is do an spawn.expect('.+'). As noted in the documentation that is a useless anti-pattern. It could be that the n_skip=1 default was letting this work somewhat accidentally.

https://github.com/sot/Ska.Shell/blob/6c345e29d4c3632bcf8d31b0acc3b183abf61187/Ska/Shell/shell.py#L99

This also does minor modernizing by dropping support for Python 2.7 and fixing some flake8 issues.

Testing

Passes unit tests on:

  • CentOS-7 (kady)
  • CentOS-5 (presto)
  • MacOSX catalina
  • MaxOSX mojave

@jeanconn jeanconn merged commit abebe8d into master Jan 9, 2020
@jeanconn jeanconn deleted the fix-catalina branch January 9, 2020 03:00
@jeanconn jeanconn mentioned this pull request Jan 10, 2020
22 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants