Skip to content

Commit

Permalink
Validate that Aruba scratch directory is empty at setup time
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Nov 10, 2024
1 parent 4f130f7 commit 9228bfc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/support/shared_contexts/aruba.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def set_tag(tag_name, value)
@file_size = 256
@file_path = @aruba.expand_path(@file_name)
@aruba.setup_aruba
raise "File #{@file_path} exists" if File.exist? @file_path

if @aruba.aruba.current_directory[0] == '/'
raise 'We must work with relative paths, everything else is dangerous'
Expand Down

0 comments on commit 9228bfc

Please sign in to comment.