From b228bdd9c7fcad2b64d63ac8e3239e574b9ba2b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Sun, 18 May 2025 12:02:32 +0200 Subject: [PATCH] Fix failing tests --- src/Appwrite/Platform/Modules/Functions/Workers/Builds.php | 4 ++-- tests/e2e/Services/Sites/SitesCustomServerTest.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php index a1bf59fb02..0bb84c6b4e 100644 --- a/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php +++ b/src/Appwrite/Platform/Modules/Functions/Workers/Builds.php @@ -667,11 +667,11 @@ class Builds extends Action // Enter output directory, if set if (!empty($resource->getAttribute('outputDirectory', ''))) { - $listFilesCommand .= 'cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', '')); + $listFilesCommand .= ' && cd ' . \escapeshellarg($resource->getAttribute('outputDirectory', '')); } // Print files, and end separation - $listFilesCommand .= 'find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"'; + $listFilesCommand .= ' && find . -name \'node_modules\' -prune -o -type f -print && echo "{APPWRITE_DETECTION_SEPARATOR_END}"'; // Use SSR file listing if (empty($command)) { diff --git a/tests/e2e/Services/Sites/SitesCustomServerTest.php b/tests/e2e/Services/Sites/SitesCustomServerTest.php index 7a73e29b02..f9d5b4acdf 100644 --- a/tests/e2e/Services/Sites/SitesCustomServerTest.php +++ b/tests/e2e/Services/Sites/SitesCustomServerTest.php @@ -524,7 +524,6 @@ class SitesCustomServerTest extends Scope $this->assertNotEmpty($deploymentId); $site = $this->getSite($siteId); - \var_dump($site); $this->assertEquals('200', $site['headers']['status-code']); $this->assertEquals('static', $site['body']['adapter']); $this->assertEquals('main.html', $site['body']['fallbackFile']);