A round of bug-fixing on OS X
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1815 980ebf18-57e1-0310-9a29-db15c13687c0
This commit is contained in:
Родитель
ed38ba4473
Коммит
07f616badf
|
@ -263,6 +263,7 @@ class TestTransactions < Test::Unit::TestCase
|
||||||
states = {}
|
states = {}
|
||||||
check = [:group,:mode]
|
check = [:group,:mode]
|
||||||
file[:check] = check
|
file[:check] = check
|
||||||
|
file[:group] = @groups[0]
|
||||||
|
|
||||||
@@tmpfiles << execfile
|
@@tmpfiles << execfile
|
||||||
|
|
||||||
|
@ -284,7 +285,7 @@ class TestTransactions < Test::Unit::TestCase
|
||||||
file[:mode] = "755"
|
file[:mode] = "755"
|
||||||
}
|
}
|
||||||
|
|
||||||
trans = assert_events([:file_changed, :triggered], component)
|
trans = assert_events([:file_changed, :file_changed, :triggered], component)
|
||||||
|
|
||||||
assert(FileTest.exists?(execfile), "Execfile does not exist")
|
assert(FileTest.exists?(execfile), "Execfile does not exist")
|
||||||
File.unlink(execfile)
|
File.unlink(execfile)
|
||||||
|
@ -305,6 +306,8 @@ class TestTransactions < Test::Unit::TestCase
|
||||||
states = {}
|
states = {}
|
||||||
check = [:group,:mode]
|
check = [:group,:mode]
|
||||||
file[:check] = check
|
file[:check] = check
|
||||||
|
file[:group] = @groups[0]
|
||||||
|
assert_apply(file)
|
||||||
|
|
||||||
fcomp = newcomp("file",file)
|
fcomp = newcomp("file",file)
|
||||||
ecomp = newcomp("exec",exec)
|
ecomp = newcomp("exec",exec)
|
||||||
|
|
|
@ -353,8 +353,10 @@ class TestPackages < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
# The file installed, and the receipt
|
# The file installed, and the receipt
|
||||||
@@tmpfiles << "/tmp/file"
|
cleanup do
|
||||||
@@tmpfiles << "/Library/Receipts/pkgtesting.pkg"
|
FileUtils.rmtree("/tmp/file")
|
||||||
|
FileUtils.rmtree("/Library/Receipts/pkgtesting.pkg")
|
||||||
|
end
|
||||||
|
|
||||||
assert_events([:package_installed], pkg, "package")
|
assert_events([:package_installed], pkg, "package")
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче