Commit c55dc1bc c55dc1bcff5bbd39a8ecac01feb2c52a79982dff by Nicolas Perriault

temporary fix for strange behavior of fs.isWritable on Windows

1 parent c816b83e
...@@ -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);
......