Skip to content

Commit 9aeb6e2

Browse files
authored
Also --init git submodules when running user tests (microsoft#27508)
1 parent ef4ae3f commit 9aeb6e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testRunner/externalCompileRunner.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
5353
if (reset.status !== 0) throw new Error(`git reset for ${directoryName} failed: ${reset.stderr.toString()}`);
5454
const clean = cp.spawnSync("git", ["clean", "-f"], { cwd: submoduleDir, timeout, shell: true, stdio });
5555
if (clean.status !== 0) throw new Error(`git clean for ${directoryName} failed: ${clean.stderr.toString()}`);
56-
const update = cp.spawnSync("git", ["submodule", "update", "--remote", "."], { cwd: submoduleDir, timeout, shell: true, stdio });
56+
const update = cp.spawnSync("git", ["submodule", "update", "--remote", ".", "--init"], { cwd: submoduleDir, timeout, shell: true, stdio });
5757
if (update.status !== 0) throw new Error(`git submodule update for ${directoryName} failed: ${update.stderr.toString()}`);
5858

5959
const config = JSON.parse(fs.readFileSync(path.join(cwd, "test.json"), { encoding: "utf8" })) as UserConfig;

0 commit comments

Comments
 (0)