-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor shell_executable package and fix error handling in stage4.go
The changes in the diff include refactoring the shell_executable package in the condition_reader/condition_reader.go file. The ReadBytesUntil and ReadBytesUntilTimeout methods now wrap the reader error to handle program exit errors properly. In the stage4.go file, the error handling for program exit in the testExit function has been updated to check for the ErrProgramExited error instead of specific error types. Additionally, there is a change in the fixtures/missing_command/wrong_output file, which shows that the program exited instead of reaching EOF. Commit message: "Refactor shell_executable package and fix error handling in stage4.go"
- Loading branch information
1 parent
4cd31f0
commit 16964c4
Showing
4 changed files
with
31 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,4 +80,4 @@ func (t *ConditionReader) ReadUntilTimeout(timeout time.Duration) ([]byte, error | |
} | ||
|
||
return data, err | ||
} | ||
} |
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
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