temporary fix for strange behavior of fs.isWritable on Windows
Showing
1 changed file
with
4 additions
and
3 deletions
... | @@ -943,9 +943,10 @@ Tester.prototype.runTest = function runTest(testFile) { | ... | @@ -943,9 +943,10 @@ Tester.prototype.runTest = function runTest(testFile) { |
943 | */ | 943 | */ |
944 | Tester.prototype.saveResults = function saveResults(filepath) { | 944 | Tester.prototype.saveResults = function saveResults(filepath) { |
945 | "use strict"; | 945 | "use strict"; |
946 | if (!fs.isWritable(filepath)) { | 946 | // FIXME: looks like phantomjs has a pb with fs.isWritable https://groups.google.com/forum/#!topic/casperjs/hcUdwgGZOrU |
947 | throw new CasperError(f('Path %s is not writable.', filepath)); | 947 | // if (!fs.isWritable(filepath)) { |
948 | } | 948 | // throw new CasperError(f('Path %s is not writable.', filepath)); |
949 | // } | ||
949 | try { | 950 | try { |
950 | fs.write(filepath, this.exporter.getXML(), 'w'); | 951 | fs.write(filepath, this.exporter.getXML(), 'w'); |
951 | this.casper.echo(f('Result log stored in %s', filepath), 'INFO', 80); | 952 | this.casper.echo(f('Result log stored in %s', filepath), 'INFO', 80); | ... | ... |
-
Please register or sign in to post a comment