summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-05 20:58:24 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-05 20:58:24 +0000
commit4ab74ce60963eb543c5e2aa4bb3bd696bf2a5438 (patch)
tree1b0b2171fdf1fb61567638d899423864857c282b /test
parent50ffa7f6b0885e2fb2e1e468c04dfec81f21e011 (diff)
downloadpuppet-4ab74ce60963eb543c5e2aa4bb3bd696bf2a5438.tar.gz
puppet-4ab74ce60963eb543c5e2aa4bb3bd696bf2a5438.tar.xz
puppet-4ab74ce60963eb543c5e2aa4bb3bd696bf2a5438.zip
Fixing checks so that they can run even if the set cwd does not exist
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1087 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/types/exec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/types/exec.rb b/test/types/exec.rb
index 782f1a871..730562a95 100755
--- a/test/types/exec.rb
+++ b/test/types/exec.rb
@@ -470,6 +470,11 @@ class TestExec < Test::Unit::TestCase
)
}
+ # Throw a check in there with our cwd and make sure it works
+ assert_nothing_raised("Could not check with a missing cwd") do
+ exec2[:unless] = "test -f /this/file/does/not/exist"
+ end
+
assert_raise(Puppet::Error) do
exec2.state(:returns).sync
end