summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-07-11 17:10:56 +0000
committerLuke Kanies <luke@madstop.com>2005-07-11 17:10:56 +0000
commit600f272c7f61bc645d6f0ab4920c692e8190b789 (patch)
treefd17d5ad0cb3e4aab5816e80ff2da59f18a0e612 /test
parent4157fa01f499bdcdba19a0a6096f14cb1dc710ab (diff)
downloadpuppet-600f272c7f61bc645d6f0ab4920c692e8190b789.tar.gz
puppet-600f272c7f61bc645d6f0ab4920c692e8190b789.tar.xz
puppet-600f272c7f61bc645d6f0ab4920c692e8190b789.zip
adding cwd parameter to exec
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@350 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/types/tc_exec.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/types/tc_exec.rb b/test/types/tc_exec.rb
index bc6b7dfaf..1eada111b 100755
--- a/test/types/tc_exec.rb
+++ b/test/types/tc_exec.rb
@@ -119,4 +119,23 @@ class TestExec < Test::Unit::TestCase
)
}
end
+
+ def test_xcwdsettings
+ command = nil
+ assert_nothing_raised {
+ command = Puppet::Type::Exec.new(
+ :command => "pwd",
+ :cwd => "/tmp",
+ :path => "/usr/bin:/bin:/usr/sbin:/sbin",
+ :returns => 0
+ )
+ }
+ assert_nothing_raised {
+ command.retrieve
+ }
+ assert_nothing_raised {
+ command.sync
+ }
+ assert_equal("/tmp\n",command.output)
+ end
end