From c8ddbe068060bd593e44e1e0c2d3b7751e37ecee Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 4 May 2018 14:36:24 -0600 Subject: [PATCH] Some more debug for Travis --- api/tests/Vfs/SharingBase.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/api/tests/Vfs/SharingBase.php b/api/tests/Vfs/SharingBase.php index eddd16312d..95488b55dd 100644 --- a/api/tests/Vfs/SharingBase.php +++ b/api/tests/Vfs/SharingBase.php @@ -81,7 +81,21 @@ class SharingBase extends LoggedInTest $backup = Vfs::$is_root; Vfs::$is_root = true; + if(static::LOG_LEVEL > 1) + { + error_log($this->getName() . ' files for removal:'); + error_log(implode("\n",$this->files)); + error_log($this->getName() . ' mounts for removal:'); + error_log(implode("\n",$this->mounts)); + error_log($this->getName() . ' shares for removal:'); + error_log(implode("\n",$this->shares)); + } + // Remove any added files (as root to limit versioning issues) + if(in_array('/',$this->files)) + { + $this->fail('Tried to remove root'); + } Vfs::remove($this->files); // Remove any mounts