From d8a6ab54e7d55d5fe82d76b104935610514a5127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Wed, 10 Jun 2026 22:57:19 +0200 Subject: [PATCH] chore(tests): Use /dev/shm as a tempdirectory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Should fix tests in phpunit-32bits Signed-off-by: Côme Chilliet --- tests/lib/TempManagerTest.php | 2 +- tests/preseed-config.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/lib/TempManagerTest.php b/tests/lib/TempManagerTest.php index cae7e9f8dd5..06a43930e91 100644 --- a/tests/lib/TempManagerTest.php +++ b/tests/lib/TempManagerTest.php @@ -44,7 +44,7 @@ class TempManagerTest extends \Test\TestCase { $config = $this->createMock(IConfig::class); $config->method('getSystemValue') ->with('tempdirectory', null) - ->willReturn('/tmp'); + ->willReturn('/dev/shm'); } $iniGetWrapper = $this->createMock(IniGetWrapper::class); $manager = new TempManager($logger, $config, $iniGetWrapper); diff --git a/tests/preseed-config.php b/tests/preseed-config.php index 1fc98a4226a..0853b220a65 100644 --- a/tests/preseed-config.php +++ b/tests/preseed-config.php @@ -16,6 +16,7 @@ $CONFIG = [ 'writable' => true, ], ], + 'tempdirectory' => '/dev/shm', ]; if (is_dir(OC::$SERVERROOT . '/apps2')) {