Debugging for zipDirectory() test failure on Travis
This commit is contained in:
parent
b5344119bb
commit
94e0e8b752
2 changed files with 9 additions and 0 deletions
|
@ -746,6 +746,7 @@ Zotero.File = new function(){
|
|||
return;
|
||||
}
|
||||
|
||||
Zotero.debug("Adding ZIP entry " + entry.path);
|
||||
zipWriter.addEntryFile(
|
||||
// Add relative path
|
||||
entry.path.substr(rootPath.length + 1),
|
||||
|
|
|
@ -71,7 +71,15 @@ describe("Zotero.File", function () {
|
|||
})
|
||||
|
||||
describe("#zipDirectory()", function () {
|
||||
afterEach(function () {
|
||||
Zotero.Prefs.set('debug.log', false);
|
||||
Zotero.Debug.init();
|
||||
});
|
||||
|
||||
it("should compress a directory recursively", function* () {
|
||||
Zotero.Prefs.set('debug.log', true);
|
||||
Zotero.Debug.init();
|
||||
|
||||
var tmpPath = Zotero.getTempDirectory().path;
|
||||
var path = OS.Path.join(tmpPath, Zotero.Utilities.randomString());
|
||||
yield OS.File.makeDir(path);
|
||||
|
|
Loading…
Reference in a new issue