diff --git a/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb b/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb index 0d4dd6b5d..0941c030c 100644 --- a/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb +++ b/acceptance/tests/ticket_7728_don't_log_whits_on_failure.rb @@ -1,20 +1,20 @@ test_name "#7728: Don't log whits on resource failure" manifest = %Q{ class foo { - exec { "test": command => "/usr/bin/false" } + exec { "test": command => "false", path => ['/bin', '/usr/bin'] } notify { "before": before => Exec["test"] } notify { "after": require => Exec["test"] } } include foo } apply_manifest_on(agents, manifest) do # Note: using strings in the match, because I want them regexp-escaped, # and the assertion code will do that automatically. --daniel 2011-06-07 assert_match(Regexp.quote('notice: /Stage[main]/Foo/Notify[after]: Dependency Exec[test] has failures: true'), stdout, "the after dependency must be reported") assert_no_match(Regexp.quote('Class[Foo]'), stdout, 'the class should not be mentioned') assert_no_match(Regexp.quote('Stage[Main]'), stdout, 'the class should not be mentioned') end