Skip to content

Commit 3efc4e1

Browse files
Fix create-container system tests on Windows
1 parent 763fe34 commit 3efc4e1

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

system-tests/src/tests/misc.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,15 @@ run(
133133
{ expectedExitCode: 1 },
134134
);
135135

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

140146
// transform-container / publish-container should be successful
141147
run(

0 commit comments

Comments
 (0)