smoketest: fix logs

This commit is contained in:
Joao Moreno 2017-10-05 16:51:10 +02:00
parent 0a7e61642b
commit 0e8aca2823

View file

@ -159,10 +159,11 @@ export class SpectronApplication {
};
if (LOGS_DIR) {
opts.chromeDriverLogPath = path.join(LOGS_DIR, id, 'chromedriver');
mkdirp.sync(opts.chromeDriverLogPath);
const dir = path.join(LOGS_DIR, id);
opts.chromeDriverLogPath = path.join(dir, 'chromedriver.log');
mkdirp.sync(dir);
opts.webdriverLogPath = path.join(LOGS_DIR, id, 'webdriver');
opts.webdriverLogPath = path.join(dir, 'webdriver');
mkdirp.sync(opts.webdriverLogPath);
}