create different tests log with each options
This commit is contained in:
parent
5366bc197c
commit
3c308aa031
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -207,9 +207,8 @@ jobs:
|
||||
- name: Cache parallel tests log
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: tests/parallel_runtime_rspec.log
|
||||
key: ${{ runner.os }}-parallel_runtime_rspec.log
|
||||
restore-keys: ${{ runner.os }}-parallel_runtime_rspec.log
|
||||
path: tests
|
||||
key: ${{ runner.os }}-${{ matrix.test-flags }}-parallel_runtime_rspec
|
||||
|
||||
- name: Run brew tests
|
||||
run: |
|
||||
@ -299,9 +298,8 @@ jobs:
|
||||
- name: Cache parallel tests log
|
||||
uses: actions/cache@v1
|
||||
with:
|
||||
path: tests/parallel_runtime_rspec.log
|
||||
path: tests
|
||||
key: ${{ runner.os }}-parallel_runtime_rspec.log
|
||||
restore-keys: ${{ runner.os }}-parallel_runtime_rspec.log
|
||||
|
||||
- name: Run brew tests
|
||||
run: brew tests --online --coverage
|
||||
|
@ -98,10 +98,16 @@ module Homebrew
|
||||
Dir.glob("test/**/*_spec.rb")
|
||||
end
|
||||
|
||||
parallel_rspec_log_name = "parallel_runtime_rspec"
|
||||
parallel_rspec_log_name = "#{parallel_rspec_log_name}.no_compat" if args.no_compat?
|
||||
parallel_rspec_log_name = "#{parallel_rspec_log_name}.generic" if args.generic?
|
||||
parallel_rspec_log_name = "#{parallel_rspec_log_name}.online" if args.online?
|
||||
parallel_rspec_log_name = "#{parallel_rspec_log_name}.log"
|
||||
|
||||
parallel_rspec_log_path = if ENV["CI"]
|
||||
"tests/parallel_runtime_rspec.log"
|
||||
"tests/#{parallel_rspec_log_name}"
|
||||
else
|
||||
"#{HOMEBREW_CACHE}/tests/parallel_runtime_rspec.log"
|
||||
"#{HOMEBREW_CACHE}/#{parallel_rspec_log_name}"
|
||||
end
|
||||
|
||||
parallel_args = if ENV["CI"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user