www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit edc996b1ed3397b7af9bdcb873f6fffcad4c8f63
parent 2d88b07855cc8f9186c9d4c3d5f6815a461a8363
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 24 Jun 2016 18:32:35 -0400

Sanity-check OS.File.DirectoryIterator entry.isDir only on Travis

Follow up from 2c2a5a378

Diffstat:
Mchrome/content/zotero/xpcom/file.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/chrome/content/zotero/xpcom/file.js b/chrome/content/zotero/xpcom/file.js @@ -734,7 +734,7 @@ Zotero.File = new function(){ iterator = new OS.File.DirectoryIterator(path); yield iterator.forEach(Zotero.Promise.coroutine(function* (entry) { // entry.isDir can be false for some reason on Travis, causing spurious test failures - if (Zotero.isLinux && !entry.isDir && (yield OS.File.stat(entry.path)).isDir) { + if (Zotero.automatedTest && !entry.isDir && (yield OS.File.stat(entry.path)).isDir) { Zotero.debug("Overriding isDir for " + entry.path); entry.isDir = true; }