Skip to content

Commit

Permalink
Merge pull request #54 from luislavena/fix/fluke-windows-test
Browse files Browse the repository at this point in the history
Fix fluke errors in Windows
  • Loading branch information
luislavena authored Apr 5, 2020
2 parents 6668adc + e4bbe02 commit c640b05
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
- name: Run test
run: |
rake test
- name: Run packaging
run: |
rake package
gem install --local pkg/gem-compiler-*.gem
2 changes: 2 additions & 0 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
- name: Run test
run: |
rake test
- name: Run packaging
run: |
rake package
gem install --local pkg/gem-compiler-*.gem
2 changes: 2 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ jobs:
- name: Run test
run: |
rake test
- name: Run packaging
run: |
rake package
gem install --local pkg/gem-compiler-*.gem
4 changes: 4 additions & 0 deletions test/rubygems/test_gem_compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ def test_compile_strip_cmd
util_reset_arch
hook_simple_run

old_rbconfig_strip = RbConfig::CONFIG["STRIP"]
RbConfig::CONFIG["STRIP"] = "rbconfig-strip-cmd"

gem_file = util_bake_gem("foo") do |spec|
util_dummy_extension spec, "bar"
end
Expand All @@ -423,6 +426,7 @@ def test_compile_strip_cmd
refute_match %r|#{RbConfig::CONFIG["STRIP"]}|, @ui.output
assert_match %r|using 'echo strip-custom'|, @ui.output
ensure
RbConfig::CONFIG["STRIP"] = old_rbconfig_strip
restore_simple_run
end

Expand Down

0 comments on commit c640b05

Please sign in to comment.