www

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

commit 66f6ce715b085def17e90f39f55859b332472931
parent a735d5dd41d3ba5299584e7d1b4f07a86c2229d1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon, 28 Nov 2016 16:16:54 -0500

Another Travis isDir workaround

Diffstat:
Mchrome/content/zotero/xpcom/profile.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/profile.js b/chrome/content/zotero/xpcom/profile.js @@ -203,6 +203,11 @@ Zotero.Profile = { yield Zotero.File.iterateDirectory(profilesDir, function* (iterator) { while (true) { let entry = yield iterator.next(); + // entry.isDir can be false for some reason on Travis, causing spurious test failures + if (Zotero.automatedTest && !entry.isDir && (yield OS.File.stat(entry.path)).isDir) { + Zotero.debug("Overriding isDir for " + entry.path); + entry.isDir = true; + } if (entry.isDir && (yield OS.File.exists(OS.Path.join(entry.path, "prefs.js")))) { dirs.push(entry.path); }