From 601cf775f2acbd07352d6b5591f25b0f427e514e Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 24 Apr 2019 16:12:41 -0600 Subject: [PATCH] Check files_dir and skip tests if we don't have read/write access --- api/tests/Vfs/SharingBase.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/api/tests/Vfs/SharingBase.php b/api/tests/Vfs/SharingBase.php index c3ad00f9a7..bf9e90149b 100644 --- a/api/tests/Vfs/SharingBase.php +++ b/api/tests/Vfs/SharingBase.php @@ -61,6 +61,15 @@ class SharingBase extends LoggedInTest public function setUp() { + // Check we have basic access + if(!is_readable($GLOBALS['egw_info']['server']['files_dir'])) + { + $this->markTestSkipped('No read access to files dir "' .$GLOBALS['egw_info']['server']['files_dir'].'"' ); + } + if(!is_writable($GLOBALS['egw_info']['server']['files_dir'])) + { + $this->markTestSkipped('No write access to files dir "' .$GLOBALS['egw_info']['server']['files_dir'].'"' ); + } }