aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-06-05 21:00:50 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-06 09:29:31 +0200
commitad4ec414c9e1cf4ff8189040a132ec81bf1fd377 (patch)
tree2bebd1edf3104f2bfc4f49b988ed2251c1898c70 /tests/lib
parent70e0ae063739b9749883bd184fee0a80f184685b (diff)
downloadnextcloud-server-ad4ec414c9e1cf4ff8189040a132ec81bf1fd377.tar.gz
nextcloud-server-ad4ec414c9e1cf4ff8189040a132ec81bf1fd377.zip
use system function to recursive remove the directory used by temporary storage
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/files/view.php4
1 files changed, 3 insertions, 1 deletions
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() {