Skip to content

Commit 52c688c

Browse files
authored
Internal: Fix flaky daily test [TMZ-997] (#596)
1 parent ab9648f commit 52c688c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

tests/wp-env/config/setup.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ echo ""
1212

1313
echo "Checking for hello-elementor theme specifically:"
1414
if [ -d "/var/www/html/wp-content/themes/hello-elementor" ]; then
15-
echo "hello-elementor directory found"
15+
echo "hello-elementor directory found"
1616
echo "Contents:"
17-
ls -la /var/www/html/wp-content/themes/hello-elementor/ | head -10
17+
ls -la /var/www/html/wp-content/themes/hello-elementor/
1818
echo ""
1919

2020
echo "Checking for style.css:"
2121
if [ -f "/var/www/html/wp-content/themes/hello-elementor/style.css" ]; then
22-
echo "style.css found"
22+
echo "style.css found"
2323
echo "Theme header:"
24-
head -10 /var/www/html/wp-content/themes/hello-elementor/style.css
24+
head -10 /var/www/html/wp-content/themes/hello-elementor/style.css || true
2525
else
26-
echo "style.css missing"
26+
echo "style.css missing"
2727
fi
2828
else
29-
echo "hello-elementor directory not found"
29+
echo "hello-elementor directory not found"
3030
echo "Available theme directories:"
3131
ls -la /var/www/html/wp-content/themes/
3232
fi
@@ -39,13 +39,13 @@ echo ""
3939

4040
echo "Attempting to activate hello-theme theme..."
4141
wp theme activate hello-theme || {
42-
echo "Failed to activate hello-theme, trying hello-elementor..."
42+
echo "Failed to activate hello-theme, trying hello-elementor..."
4343
wp theme activate hello-elementor || {
44-
echo "Both activation attempts failed. Final theme list:"
44+
echo "Both activation attempts failed. Final theme list:"
4545
wp theme list
46-
echo "Available theme directories in WordPress:"
46+
echo "Available theme directories in WordPress:"
4747
ls -la /var/www/html/wp-content/themes/
48-
echo "Theme activation completely failed"
48+
echo "Theme activation completely failed"
4949
exit 1
5050
}
5151
}

0 commit comments

Comments
 (0)