Branch: Tag:

2018-04-03

2018-04-03 13:12:31 by Karl Gustav Sterneberg <kg@roxen.com>

Revert "Testsuite [WebDAV]: Working also directly against filesystem when preparing testdir."

This reverts commit ced7df346e8669b40b937a14e8bd4969d8562eee. We do this
since if webdav delete fails, maybe due to some locks we left behind by
mistake, then testcases may fail even if we delete the directory without
using webdav.

486:    testdir = has_suffix(testdir, "/") ? testdir[..<1] : testdir;    report_debug("Webdav: Test dir is: %O\n", testdir);    -  if (filesystem_check_exists(testdir)) { -  // In case it is not empty. -  filesystem_recursive_rm(testdir); -  } +  // Consider working directly with the filesystem instead. +  // filesystem_recursive_rm(testdir); +  +  // webdav_mkcol may return true even it the dir already existed. Therefor +  // we always clean. +  webdav_request("DELETE", testdir); // In case it already exists...    webdav_request("MKCOL", testdir);    webdav_ls(testdir+"/", ({ testdir+"/" }));   }