Index: tools/push-to-trunk/test_scripts.py |
diff --git a/tools/push-to-trunk/test_scripts.py b/tools/push-to-trunk/test_scripts.py |
index bc52a1c02fc1cc26c422643bb6ce17b32dbcd4f0..6eeb323e43a3d7add3ea23dfbcb72b58ce240993 100644 |
--- a/tools/push-to-trunk/test_scripts.py |
+++ b/tools/push-to-trunk/test_scripts.py |
@@ -694,6 +694,21 @@ Performance and stability improvements on all platforms.""" |
commit_msg = """Line with "quotation marks".""" |
self._TestSquashCommits(change_log, commit_msg) |
+ def testBootstrapper(self): |
+ work_dir = self.MakeEmptyTempDirectory() |
+ class FakeScript(ScriptsBase): |
+ def _Steps(self): |
+ return [] |
+ |
+ # Use the test configuration without the fake testing default work dir. |
+ fake_config = dict(TEST_CONFIG) |
+ del(fake_config["DEFAULT_CWD"]) |
+ |
+ self.Expect([ |
+ Cmd("fetch v8", "", cwd=work_dir), |
+ ]) |
+ FakeScript(fake_config, self).Run(["--work-dir", work_dir]) |
+ |
def _PushToTrunk(self, force=False, manual=False): |
TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git")) |
@@ -1319,7 +1334,7 @@ LOG=N |
lambda: MergeToBranch(TEST_CONFIG, self).Run(args)) |
# Test that state recovery after restarting the script works. |
- args += ["-s", "3"] |
+ args += ["-s", "4"] |
MergeToBranch(TEST_CONFIG, self).Run(args) |
def testMergeToBranchNewGit(self): |
@@ -1460,7 +1475,7 @@ LOG=N |
lambda: MergeToBranch(TEST_CONFIG, self).Run(args)) |
# Test that state recovery after restarting the script works. |
- args += ["-s", "3"] |
+ args += ["-s", "4"] |
MergeToBranch(TEST_CONFIG, self).Run(args) |
def testReleases(self): |