Lines Matching refs:TEST_CONFIG

53 TEST_CONFIG = {  variable
277 "cwd": kwargs.get("cwd", TEST_CONFIG["DEFAULT_CWD"]),
381 version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)
396 options = ScriptsBase(TEST_CONFIG, self, self._state).MakeOptions([])
398 config=TEST_CONFIG, side_effect_handler=self,
404 return script(TEST_CONFIG, self, self._state).RunSteps([step_class], args)
440 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
443 if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]):
444 shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"])
466 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
468 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
478 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
489 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
491 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], None),
497 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
502 self.MakeStep().InitialEnvironmentChecks(TEST_CONFIG["DEFAULT_CWD"])
562 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
589 actual_cl = FileToText(TEST_CONFIG["CHANGELOG_ENTRY_FILE"])
620 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
621 TextToFile(" New \n\tLines \n", TEST_CONFIG["CHANGELOG_ENTRY_FILE"])
625 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], ""),
631 FileToText(TEST_CONFIG["CHANGELOG_ENTRY_FILE"]))
659 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
660 with open(TEST_CONFIG["CHANGELOG_ENTRY_FILE"], "w") as f:
671 self.assertEquals(FileToText(TEST_CONFIG["COMMITMSG_FILE"]), expected_msg)
673 patch = FileToText(TEST_CONFIG["PATCH_FILE"])
716 fake_config = dict(TEST_CONFIG)
725 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
731 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
734 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
757 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
764 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
767 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
778 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
803 TEST_CONFIG["BRANCHNAME"]), ""),
820 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], ""))
826 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates),
827 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""),
840 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""),
842 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates),
843 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
853 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
854 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""),
862 PushToCandidates(TEST_CONFIG, self).Run(args)
864 cl = FileToText(os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
882 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
889 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
902 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
906 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
909 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
920 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
957 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
978 CreateRelease(TEST_CONFIG, self).Run(args)
980 cl = FileToText(os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
1033 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1034 json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
1035 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1050 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run(
1052 "-c", TEST_CONFIG["CHROMIUM"],
1061 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1062 json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
1063 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1064 TextToFile("", os.path.join(TEST_CONFIG["CHROMIUM"], ".git"))
1065 chrome_dir = TEST_CONFIG["CHROMIUM"]
1107 auto_roll.AutoRoll(TEST_CONFIG, self).Run(args)
1142 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS + ["--push"])
1145 % TEST_CONFIG["PERSISTFILE_BASENAME"]))
1150 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()
1151 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
1158 FileToText(TEST_CONFIG["TEMPORARY_PATCH_FILE"]))
1183 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
1186 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
1199 TEST_CONFIG["BRANCHNAME"], ""),
1228 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1232 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1236 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1240 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1244 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1248 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""),
1252 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""),
1270 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
1280 lambda: MergeToBranch(TEST_CONFIG, self).Run(args))
1284 MergeToBranch(TEST_CONFIG, self).Run(args)
1337 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1338 chrome_dir = TEST_CONFIG["CHROMIUM"]
1353 Cmd("git new-branch %s" % TEST_CONFIG["BRANCHNAME"], ""),
1443 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], "")
1446 args = ["-c", TEST_CONFIG["CHROMIUM"],
1450 Releases(TEST_CONFIG, self).Run(args)
1535 TEST_CONFIG, DEFAULT_SIDE_EFFECT_HANDLER, {}).MakeOptions([])