This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed `setupDebugConsole()` to use a global `var` of supported shells and to accept the debug console path as a parameter. This allows the new unit test to modify its behaviour. Note that to allow the goroutine started by `setupDebugConsole()` to be stopped, the function now requires a `context` parameter. That required `realMain()` to call the debug console setup after starting tracing (to allow the tracing context to be passed to it). This also has the attractive side-effect of allowing the debug console setup itself to be traced. Signed-off-by: James O. D. Hunt <[email protected]>
- Loading branch information
1 parent
d167490
commit 5163bab
Showing
2 changed files
with
102 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters