Skip to content

Commit

Permalink
removing option
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Simmons <[email protected]>
  • Loading branch information
sean-simmons-progress committed Feb 14, 2025
1 parent 72d4971 commit 77705ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion .expeditor/verify.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ steps:
expeditor:
executor:
docker:
privileged: true
host_os: windows
shell: ["powershell", "-Command"]
image: rubydistros/windows-2019:3.1
Expand Down
15 changes: 14 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require "bundler/gem_tasks"
require "fileutils" # Add this line

WINDOWS_PLATFORM = /mswin|win32|mingw/.freeze unless defined? WINDOWS_PLATFORM

Expand Down Expand Up @@ -41,11 +42,23 @@ rescue LoadError
task :spec
end

# Ensure no file access conflicts
desc "Ensure no file access conflicts"
task :ensure_file_access do
files_to_check = ["admin.pem", "config.rb"] # Add any other files that need to be checked
files_to_check.each do |file|
while File.exist?(file) && File.open(file) { |f| f.flock(File::LOCK_EX | File::LOCK_NB) } == false
puts "Waiting for #{file} to be available..."
sleep 1
end
end
end

# Feature Tests
begin
require "cucumber"
require "cucumber/rake/task"
Cucumber::Rake::Task.new(:features) do |t|
Cucumber::Rake::Task.new(:features => :ensure_file_access) do |t| # Add dependency on :ensure_file_access
if RUBY_PLATFORM =~ WINDOWS_PLATFORM || RUBY_PLATFORM =~ /darwin/
t.cucumber_opts = "--tags 'not @not-windows'"
end
Expand Down

0 comments on commit 77705ff

Please sign in to comment.