Skip to content

Commit 6592ebc

Browse files
committed
Fix test for script being executable
This was failing for me because the script was mode `755` rather than the expected `775`. Instead of testing a specific mode, just test that the executable bits are set for everyone.
1 parent d289da8 commit 6592ebc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/testinfra/test_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ def test_healthcheck_script_is_executable(host):
1010
scriptFile = host.check_output("which php-fpm-healthcheck")
1111

1212
assert host.file(scriptFile).exists is True
13-
assert host.file(scriptFile).mode == 0o775
13+
assert host.file(scriptFile).mode & 0o111 == 0o111

0 commit comments

Comments
 (0)