Skip to content

Commit

Permalink
Fix create-container system tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle committed May 14, 2021
1 parent d1e4c7d commit ce7f70c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions system-tests/src/tests/misc.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,15 @@ run(
{ expectedExitCode: 1 },
);

// Escape backslashes on Windows
const miniApp = `file:${
process.platform === 'win32'
? miniAppPath.replace(/\\/g, '\\\\')
: miniAppPath
}`;
// Container gen should be successful for the two following commands
run(`create-container --miniapps file:${miniAppPath} -p android`);
run(`create-container --miniapps file:${miniAppPath} -p ios --skipInstall`);
run(`create-container -m ${miniApp} -p android`);
run(`create-container -m ${miniApp} -p ios --skipInstall`);

// transform-container / publish-container should be successful
run(
Expand Down

0 comments on commit ce7f70c

Please sign in to comment.