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

Unlink Tempfiles after use in SpawnProcess #926

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Metrics/BlockLength:

# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 145
Max: 146

# Configuration parameters: AllowedMethods, AllowedPatterns.
Metrics/CyclomaticComplexity:
Expand Down Expand Up @@ -101,8 +101,6 @@ RSpec/InstanceVariable:
- 'spec/aruba/api/filesystem_spec.rb'
- 'spec/aruba/api_spec.rb'
- 'spec/aruba/event_bus_spec.rb'
- 'spec/aruba/matchers/command/have_output_size_spec.rb'
- 'spec/aruba/matchers/command_spec.rb'
- 'spec/aruba/matchers/directory_spec.rb'
- 'spec/aruba/matchers/file_spec.rb'
- 'spec/aruba/matchers/path_spec.rb'
Expand Down
1 change: 1 addition & 0 deletions lib/aruba/processes/spawn_process.rb
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,7 @@ def read_temporary_output_file(file)
file.rewind
data = file.read
file.close
file.unlink

data.force_encoding("UTF-8")
end
Expand Down
Loading