Skip to content

Commit

Permalink
Fix spec/truffle/launcher_spec.rb on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrykonchin committed Oct 22, 2024
1 parent e6da326 commit 0351e07
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/truffle/launcher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def check_status_or_print(stdout_and_stderr)

it "all launchers are in @launchers" do
known = @launchers.keys.map(&:to_s).sort
actual = Dir.children(File.dirname(RbConfig.ruby)).sort
actual = Dir.children(@bindir).sort
actual.delete('truffleruby-polyglot-get')
actual.should == known
end
Expand Down Expand Up @@ -145,6 +145,12 @@ def check_status_or_print(stdout_and_stderr)
`#{@bindir}/gem uninstall hello-world -x #{@redirect}`
check_status_and_empty_stderr
File.should_not.exist?(@bindir + '/hello-world.rb')

# remove a shim file
shim_file_path = @bindir + '/hello-world.rb.lock'
if File.exist?(shim_file_path)
File.unlink(shim_file_path)
end
end
end

Expand Down

0 comments on commit 0351e07

Please sign in to comment.