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

[run_in_new_terminal] Create a wrapper script automatically if we are given a list or tuple #1839

Merged
merged 2 commits into from
Mar 3, 2021

Conversation

heapcrash
Copy link
Collaborator

@heapcrash heapcrash commented Mar 3, 2021

This is needed for the gdb.debug and gdb.attach rewrite that I have planned.

Ends up looking like this:

>>> context.log_level='debug'
>>> run_in_new_terminal(['sh', '-c', 'zsh -il'])
[DEBUG] Created script for new terminal:
    #!/Users/heapcrash/.pyenv/versions/3.8.3/bin/python3.8
    import os
    os.execve('/bin/sh', ['sh', '-c', 'zsh -il'], os.environ)
[DEBUG] Launching a new terminal: ['/usr/local/bin/tmux', 'splitw', '-F#{pane_pid}', '-P', '/var/folders/45/y3yh_pws51qd8dfx007hf6br0000gn/T/tmp8945_lax']
59563

@heapcrash heapcrash requested a review from Arusekk March 3, 2021 20:27
@heapcrash
Copy link
Collaborator Author

All CI passed except a single failure in corefile which is transient

@heapcrash heapcrash merged commit 216d248 into Gallopsled:dev Mar 3, 2021
@heapcrash heapcrash deleted the run-in-new-terminal-list branch May 31, 2021 20:31
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.

1 participant