Run user test submodule update in the correct directory (#32921)

This commit is contained in:
Wesley Wigham
2019-08-16 14:22:21 -07:00
committed by GitHub
parent 786e36ecaf
commit d304049e0c

View File

@@ -52,7 +52,7 @@ abstract class ExternalCompileRunnerBase extends RunnerBase {
const submoduleDir = path.join(cwd, directoryName);
exec("git", ["reset", "HEAD", "--hard"], { cwd: submoduleDir });
exec("git", ["clean", "-f"], { cwd: submoduleDir });
exec("git", ["submodule", "update", "--init", "--remote", "."], { cwd: submoduleDir });
exec("git", ["submodule", "update", "--init", "--remote", "."], { cwd: originalCwd });
const config = JSON.parse(fs.readFileSync(path.join(cwd, "test.json"), { encoding: "utf8" })) as UserConfig;
ts.Debug.assert(!!config.types, "Bad format from test.json: Types field must be present.");