summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-17 21:27:26 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-09-17 21:27:26 +0000
commita345931bccd2809aee35dcdaf6a3ef1d21db8c26 (patch)
treef2b8bbf7006f162f0fb19a4e3398b38dae9ea010 /test
parenta8bdada4acadd2d5c0a08dd1c9d1a4fe5232e061 (diff)
Successfully parsed my entire converted cfengine configuration; these are all fixes for bugs i found as a result. I have not tried to execute the configuration yet.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@687 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rwxr-xr-xtest/language/tc_snippets.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/language/tc_snippets.rb b/test/language/tc_snippets.rb
index deb5392cf..aea0060ae 100755
--- a/test/language/tc_snippets.rb
+++ b/test/language/tc_snippets.rb
@@ -355,6 +355,16 @@ class TestSnippets < TestPuppet
assert(FileTest.exists?(file), "File %s does not exist" % file)
end
+ def snippet_classargtest(trans)
+ [1,2].each { |num|
+ file = "/tmp/classargtest%s" % num
+ @@tmpfiles << file
+ assert(FileTest.file?(file), "File %s does not exist" % file)
+ assert(File.stat(file).mode & 007777 == 0755,
+ "File %s is not 755" % file)
+ }
+ end
+
def disabled_snippet_dirchmod(trans)
dirs = %w{a b}.collect { |letter|
"/tmp/dirchmodtest%s" % letter