From 5de9abd5a3de7e7b2f792c49ebbc02b017fccac7 Mon Sep 17 00:00:00 2001 From: Hein van Vlastuin Date: Wed, 10 Dec 2025 13:58:58 +0200 Subject: [PATCH 1/3] Fix test setup --- tests/wp-env/config/setup.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/wp-env/config/setup.sh b/tests/wp-env/config/setup.sh index 1f8d5f2b..e389b55a 100644 --- a/tests/wp-env/config/setup.sh +++ b/tests/wp-env/config/setup.sh @@ -14,14 +14,16 @@ echo "Checking for hello-elementor theme specifically:" if [ -d "/var/www/html/wp-content/themes/hello-elementor" ]; then echo "✅ hello-elementor directory found" echo "Contents:" - ls -la /var/www/html/wp-content/themes/hello-elementor/ | head -10 + set +o pipefail + ls -la /var/www/html/wp-content/themes/hello-elementor/ | head -10 || true + set -o pipefail echo "" echo "Checking for style.css:" if [ -f "/var/www/html/wp-content/themes/hello-elementor/style.css" ]; then echo "✅ style.css found" echo "Theme header:" - head -10 /var/www/html/wp-content/themes/hello-elementor/style.css + head -10 /var/www/html/wp-content/themes/hello-elementor/style.css || true else echo "❌ style.css missing" fi From 5babeed815b2a15684ee2ad96677824c91d6f3aa Mon Sep 17 00:00:00 2001 From: Hein van Vlastuin Date: Wed, 10 Dec 2025 14:01:57 +0200 Subject: [PATCH 2/3] wip --- tests/wp-env/config/setup.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/wp-env/config/setup.sh b/tests/wp-env/config/setup.sh index e389b55a..2ce6b726 100644 --- a/tests/wp-env/config/setup.sh +++ b/tests/wp-env/config/setup.sh @@ -14,9 +14,7 @@ echo "Checking for hello-elementor theme specifically:" if [ -d "/var/www/html/wp-content/themes/hello-elementor" ]; then echo "✅ hello-elementor directory found" echo "Contents:" - set +o pipefail - ls -la /var/www/html/wp-content/themes/hello-elementor/ | head -10 || true - set -o pipefail + ls -la /var/www/html/wp-content/themes/hello-elementor/ echo "" echo "Checking for style.css:" From 5028efa1f3704fceadd54597b1d019f39e4ba007 Mon Sep 17 00:00:00 2001 From: Hein van Vlastuin Date: Wed, 10 Dec 2025 14:07:33 +0200 Subject: [PATCH 3/3] Clean up --- tests/wp-env/config/setup.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/wp-env/config/setup.sh b/tests/wp-env/config/setup.sh index 2ce6b726..0c6c5291 100644 --- a/tests/wp-env/config/setup.sh +++ b/tests/wp-env/config/setup.sh @@ -12,21 +12,21 @@ echo "" echo "Checking for hello-elementor theme specifically:" if [ -d "/var/www/html/wp-content/themes/hello-elementor" ]; then - echo "✅ hello-elementor directory found" + echo "hello-elementor directory found" echo "Contents:" ls -la /var/www/html/wp-content/themes/hello-elementor/ echo "" echo "Checking for style.css:" if [ -f "/var/www/html/wp-content/themes/hello-elementor/style.css" ]; then - echo "✅ style.css found" + echo "style.css found" echo "Theme header:" head -10 /var/www/html/wp-content/themes/hello-elementor/style.css || true else - echo "❌ style.css missing" + echo "style.css missing" fi else - echo "❌ hello-elementor directory not found" + echo "hello-elementor directory not found" echo "Available theme directories:" ls -la /var/www/html/wp-content/themes/ fi @@ -39,13 +39,13 @@ echo "" echo "Attempting to activate hello-theme theme..." wp theme activate hello-theme || { - echo "❌ Failed to activate hello-theme, trying hello-elementor..." + echo "Failed to activate hello-theme, trying hello-elementor..." wp theme activate hello-elementor || { - echo "❌ Both activation attempts failed. Final theme list:" + echo "Both activation attempts failed. Final theme list:" wp theme list - echo "❌ Available theme directories in WordPress:" + echo "Available theme directories in WordPress:" ls -la /var/www/html/wp-content/themes/ - echo "❌ Theme activation completely failed" + echo "Theme activation completely failed" exit 1 } }