smoketest: fix logs
This commit is contained in:
parent
0a7e61642b
commit
0e8aca2823
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue