Skip to content

Commit

Permalink
Complete test:foreman_ansible definition
Browse files Browse the repository at this point in the history
This moves the specific override to the test defined in rake. This means
running test:foreman_ansible runs all required tests from core as well.
The only downside it that running rake test will run the particular test
twice.
  • Loading branch information
ekohl committed Mar 14, 2022
1 parent 6c77a7c commit 10a5775
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/ruby_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,3 @@ jobs:
if: github.event_name != 'push'
run: |
bundle exec rake test:foreman_ansible
bundle exec rake test TEST="test/unit/foreman/access_permissions_test.rb"
1 change: 1 addition & 0 deletions lib/tasks/foreman_ansible_tasks.rake
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ namespace :test do
test_dir = File.join(__dir__, '..', '..', 'test')
t.libs << ['test', test_dir]
t.pattern = "#{test_dir}/**/*_test.rb"
t.test_files = [Rails.root.join('test/unit/foreman/access_permissions_test.rb')]
t.verbose = false
t.warning = false
end
Expand Down

0 comments on commit 10a5775

Please sign in to comment.