1 parent 7251f58 commit a68a958Copy full SHA for a68a958
1 file changed
tests/conftest.py
@@ -70,6 +70,15 @@ def cleanup():
70
"/var/www/html/tests/fixtures/test.log 2>/dev/null || true"
71
])
72
73
+ def set_permissions():
74
+ # Set write permissions for SSH user on fixtures directories (needed for CI)
75
+ for container in ["www1", "www2"]:
76
+ exec_in_container(container, [
77
+ "sh", "-c",
78
+ "chmod -R 777 /var/www/html/tests/fixtures/www1 "
79
+ "/var/www/html/tests/fixtures/www2 2>/dev/null || true"
80
+ ])
81
+
82
# Reset databases
83
for db in ["db1", "db2"]:
84
exec_in_container(db, [
@@ -78,6 +87,7 @@ def cleanup():
87
88
89
cleanup()
90
+ set_permissions()
91
yield
92
93
0 commit comments