diff --git a/acceptance/tests/ticket_11727_support_stdin_parsing_in_puppet_parser_validate.rb b/acceptance/tests/ticket_11727_support_stdin_parsing_in_puppet_parser_validate.rb index 9f4fb6118..832f32252 100644 --- a/acceptance/tests/ticket_11727_support_stdin_parsing_in_puppet_parser_validate.rb +++ b/acceptance/tests/ticket_11727_support_stdin_parsing_in_puppet_parser_validate.rb @@ -1,18 +1,19 @@ test_name "#11727: support stdin parsing in puppet parser validate" pp = "/tmp/11727.pp" +manifest = 'notice("hello")' step "validate with a tty parses the default manifest" -on agents, puppet(%q{parser validate}) do +on agents, puppet("parser validate"), :pty => true do assert_match(/Validating the default manifest/, stdout, "no message about validating default manifest") end step "create the remote manifest file for redirection" -create_remote_file(agents, pp, 'notice("hello")') +create_remote_file(agents, pp, manifest) -step "validate with redirection parses STDIN" -on agents, puppet(%q{parser validate <}, pp) do +step "validate with redirection parses STDIN from redirection" +on agents, puppet("parser validate < #{pp}"), :pty => true do assert_no_match(/Validating the default manifest/, stdout, "there was message about validating default manifest despite redirect") end