mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 09:40:20 +00:00
trying another method
This commit is contained in:
parent
3069df132b
commit
5eb5d57ea0
1 changed files with 3 additions and 3 deletions
|
@ -136,9 +136,9 @@ def test_directory_children_only(file, tmp_path):
|
|||
children_only=True,
|
||||
)
|
||||
assert ret.result is True
|
||||
assert name.stat().st_mode & 0o7777 == 0o0700
|
||||
assert strayfile.stat().st_mode & 0o7777 == 0o0644
|
||||
assert straydir.stat().st_mode & 0o7777 == 0o0755
|
||||
assert oct(name.stat().st_mode)[-3:] == "700"
|
||||
assert oct(strayfile.stat().st_mode)[-3:] == "644"
|
||||
assert oct(straydir.stat().st_mode)[-3:] == "755"
|
||||
|
||||
|
||||
def test_directory_clean(file, tmp_path):
|
||||
|
|
Loading…
Add table
Reference in a new issue