DEV: Use recorded runtime log for plugin specs (#28711)

The recorded runtime log was specified when running the plugin specs,
but it failed to match the entries from the runtime log and the passed
as command line arguments because the runtime log entries were not
prefixed with `./`.
This commit is contained in:
Bianca Nenciu 2024-09-03 20:36:46 +03:00 committed by GitHub
parent 0171eb0c94
commit 5d7fdfb0a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -193,7 +193,7 @@ def spec(plugin, parallel: false, argv: nil)
# reject system specs as they are slow and need dedicated setup # reject system specs as they are slow and need dedicated setup
files = files =
Dir.glob("./plugins/#{plugin}/spec/**/*_spec.rb").reject { |f| f.include?("spec/system/") }.sort Dir.glob("plugins/#{plugin}/spec/**/*_spec.rb").reject { |f| f.include?("spec/system/") }.sort
if files.length > 0 if files.length > 0
cmd = parallel ? "bin/turbo_rspec" : "bin/rspec" cmd = parallel ? "bin/turbo_rspec" : "bin/rspec"