Skip to content

Commit

Permalink
Merge pull request #737 from mkincaid/26confines
Browse files Browse the repository at this point in the history
Update acceptance tests to use confine instead of skip_test loops
  • Loading branch information
cprice404 committed May 23, 2012
2 parents 4ff46bd + 8e776e3 commit fe53647
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
step "Validate services running agreement ralsh vs. OS service count"
# This will remotely exec:
# ticket_4123_should_list_all_running_redhat.sh
confine :to, :platform => /el-/

hosts.each do |host|
if host['platform'].include?('el-')
run_script_on(host, File.join(File.dirname(__FILE__), 'ticket_4123_should_list_all_running_redhat.sh'))
else
skip_test "Test not supported on this plaform"
end
run_script_on(host, File.join(File.dirname(__FILE__), 'ticket_4123_should_list_all_running_redhat.sh'))
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@
step "Validate disabled services agreement ralsh vs. OS service count"
# This will remotely exec:
# ticket_4124_should_list_all_disabled.sh
confine :to, :platform => /el-/

hosts.each do |host|
unless host['platform'].include?('el-')
skip_test "Test not supported on this plaform"
else
run_script_on(host, File.join(File.dirname(__FILE__), 'ticket_4124_should_list_all_disabled.sh'))
end
run_script_on(host, File.join(File.dirname(__FILE__), 'ticket_4124_should_list_all_disabled.sh'))
end

0 comments on commit fe53647

Please # to comment.