fix(ppfox): check directory existance if necessary when running tests (#3871)
This commit is contained in:
parent
a2f1e2774a
commit
d89ec00122
@ -16,8 +16,10 @@ async function installFirefoxPreferences(executablePath) {
|
|||||||
prefPath = path.join(firefoxFolder, '..', 'Resources', 'defaults', 'pref');
|
prefPath = path.join(firefoxFolder, '..', 'Resources', 'defaults', 'pref');
|
||||||
configPath = path.join(firefoxFolder, '..', 'Resources');
|
configPath = path.join(firefoxFolder, '..', 'Resources');
|
||||||
} else if (os.platform() === 'linux') {
|
} else if (os.platform() === 'linux') {
|
||||||
await mkdirAsync(path.join(firefoxFolder, 'browser', 'defaults'));
|
if (!fs.existsSync(path.join(firefoxFolder, 'browser', 'defaults')))
|
||||||
await mkdirAsync(path.join(firefoxFolder, 'browser', 'defaults', 'preferences'));
|
await mkdirAsync(path.join(firefoxFolder, 'browser', 'defaults'));
|
||||||
|
if (!fs.existsSync(path.join(firefoxFolder, 'browser', 'defaults', 'preferences')))
|
||||||
|
await mkdirAsync(path.join(firefoxFolder, 'browser', 'defaults', 'preferences'));
|
||||||
prefPath = path.join(firefoxFolder, 'browser', 'defaults', 'preferences');
|
prefPath = path.join(firefoxFolder, 'browser', 'defaults', 'preferences');
|
||||||
configPath = firefoxFolder;
|
configPath = firefoxFolder;
|
||||||
} else if (os.platform() === 'win32') {
|
} else if (os.platform() === 'win32') {
|
||||||
|
Loading…
Reference in New Issue
Block a user