Transform backslash into slashes in DOC_FOLDER variable for browser-ui-test

This commit is contained in:
Guillaume Gomez 2023-06-14 10:28:50 +02:00
parent 2f9fac024c
commit fd4320ca07

View File

@ -201,8 +201,8 @@ async function main(argv) {
try {
// This is more convenient that setting fields one by one.
const args = [
"--variable", "DOC_PATH", opts["doc_folder"], "--enable-fail-on-js-error",
"--allow-file-access-from-files",
"--variable", "DOC_PATH", opts["doc_folder"].split("\\").join("/"),
"--enable-fail-on-js-error", "--allow-file-access-from-files",
];
if (opts["debug"]) {
debug = true;