From ad4ec414c9e1cf4ff8189040a132ec81bf1fd377 Mon Sep 17 00:00:00 2001 From: Thomas Müller <thomas.mueller@tmit.eu> Date: Thu, 5 Jun 2014 21:00:50 +0200 Subject: use system function to recursive remove the directory used by temporary storage --- tests/lib/files/view.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/lib/files/view.php b/tests/lib/files/view.php index b2e0b59d8e6..8eca55d1fdf 100644 --- a/tests/lib/files/view.php +++ b/tests/lib/files/view.php @@ -669,7 +669,6 @@ class View extends \PHPUnit_Framework_TestCase { $rootView = new \OC\Files\View(''); - if ($param0 === '@0') { $param0 = $longPath; } @@ -681,6 +680,9 @@ class View extends \PHPUnit_Framework_TestCase { call_user_func(array($rootView, $operation), $longPath, $param0); + if (!\OC_Util::runningOnWindows()) { + system('rm -rf ' . escapeshellarg($storage->getDataDir())); + } } public function tooLongPathDataProvider() { -- cgit v1.2.3