File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -101,9 +101,6 @@ jobs:
101101 - name : Run configure
102102 run : ../src/configure -C --disable-install-doc ${{ matrix.configure }}
103103
104- - run : make prepare-gems
105- if : ${{ matrix.test_task == 'test-bundled-gems' }}
106-
107104 - run : make
108105
109106 - name : Verify that --zjit-dump-disasm works
Original file line number Diff line number Diff line change 7272 configure : ' --enable-zjit=dev --with-gcc=clang-14'
7373 libclang_path : ' /usr/lib/llvm-14/lib/libclang.so.1'
7474
75+ - test_task : ' test-bundled-gems'
76+ configure : ' --enable-zjit=dev'
77+ run_opts : ' --zjit-call-threshold=1'
78+
7579 env :
7680 GITPULLOPTIONS : --no-tags origin ${{ github.ref }}
7781 RUN_OPTS : ${{ matrix.run_opts }}
@@ -173,8 +177,18 @@ jobs:
173177 ZJIT_BINDGEN_DIFF_OPTS : ' --exit-code'
174178 LIBCLANG_PATH : ${{ matrix.libclang_path }}
175179 TESTS : ${{ matrix.test_all_opts }}
180+ if : ${{ matrix.test_task != 'test-bundled-gems' }}
176181 continue-on-error : ${{ matrix.continue-on-test_task || false }}
177182
183+ - name : make test-bundled-gems
184+ run : |
185+ set -x
186+ make -s test-bundled-gems
187+ env :
188+ # This env is specifically added to tool/test-bundled-gems.rb as a way to pass options to Rake tasks
189+ TEST_BUNDLED_GEMS_RUBYOPT : ${{ matrix.run_opts }}
190+ if : ${{ matrix.test_task == 'test-bundled-gems' }}
191+
178192 - name : Dump crash logs
179193 if : ${{ failure() }}
180194 continue-on-error : true
Original file line number Diff line number Diff line change 100100 group = :pgroup
101101 pg = "-"
102102 end
103- pid = Process . spawn ( test_command , group => true )
103+ if rubyopt = ENV [ "TEST_BUNDLED_GEMS_RUBYOPT" ]
104+ env = ENV . to_h
105+ env [ "RUBYOPT" ] = rubyopt
106+ puts "TEST_BUNDLED_GEMS_RUBYOPT is specified. Adding `#{ rubyopt } ` to RUBYOPT"
107+ pid = Process . spawn ( env , test_command , group => true )
108+ else
109+ pid = Process . spawn ( test_command , group => true )
110+ end
111+
104112 timeouts . each do |sig , sec |
105113 if sig
106114 puts "Sending #{ sig } signal"
You can’t perform that action at this time.
0 commit comments