Lines Matching refs:TEST_CONFIG
50 TEST_CONFIG = { variable
242 "cwd": kwargs.get("cwd", TEST_CONFIG["DEFAULT_CWD"]),
346 version_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE)
360 watchlists_file = os.path.join(TEST_CONFIG["DEFAULT_CWD"], WATCHLISTS_FILE)
375 options = ScriptsBase(TEST_CONFIG, self, self._state).MakeOptions([])
377 config=TEST_CONFIG, side_effect_handler=self,
383 return script(TEST_CONFIG, self, self._state).RunSteps([step_class], args)
419 TEST_CONFIG["DEFAULT_CWD"] = self.MakeEmptyTempDirectory()
422 if os.path.exists(TEST_CONFIG["PERSISTFILE_BASENAME"]):
423 shutil.rmtree(TEST_CONFIG["PERSISTFILE_BASENAME"])
445 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
447 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
457 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
468 Cmd("git branch", " branch1\n* %s" % TEST_CONFIG["BRANCHNAME"]),
470 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], None),
476 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
481 self.MakeStep().InitialEnvironmentChecks(TEST_CONFIG["DEFAULT_CWD"])
541 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
564 actual_cl = FileToText(TEST_CONFIG["CHANGELOG_ENTRY_FILE"])
595 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
596 TextToFile(" New \n\tLines \n", TEST_CONFIG["CHANGELOG_ENTRY_FILE"])
600 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], ""),
606 FileToText(TEST_CONFIG["CHANGELOG_ENTRY_FILE"]))
634 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
635 with open(TEST_CONFIG["CHANGELOG_ENTRY_FILE"], "w") as f:
646 self.assertEquals(FileToText(TEST_CONFIG["COMMITMSG_FILE"]), expected_msg)
648 patch = FileToText(TEST_CONFIG["PATCH_FILE"])
691 fake_config = dict(TEST_CONFIG)
700 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
706 TEST_CONFIG["CHANGELOG_ENTRY_FILE"] = self.MakeEmptyTempFile()
709 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
732 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
739 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
742 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
753 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
778 TEST_CONFIG["BRANCHNAME"]), ""),
795 Cmd("vi %s" % TEST_CONFIG["CHANGELOG_ENTRY_FILE"], ""))
801 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates),
802 Cmd("git apply --index --reject \"%s\"" % TEST_CONFIG["PATCH_FILE"], ""),
815 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""),
817 TEST_CONFIG["CANDIDATESBRANCH"]), "", cb=ResetToCandidates),
818 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
828 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
829 Cmd("git branch -D %s" % TEST_CONFIG["CANDIDATESBRANCH"], ""),
837 PushToCandidates(TEST_CONFIG, self).Run(args)
839 cl = FileToText(os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
857 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
864 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
879 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
883 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
886 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
897 os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
934 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], "",
954 CreateRelease(TEST_CONFIG, self).Run(args)
956 cl = FileToText(os.path.join(TEST_CONFIG["DEFAULT_CWD"], CHANGELOG_FILE))
966 watchlists_content = FileToText(os.path.join(TEST_CONFIG["DEFAULT_CWD"],
1023 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1024 json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
1025 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1040 result = auto_roll.AutoRoll(TEST_CONFIG, self).Run(
1042 "-c", TEST_CONFIG["CHROMIUM"],
1051 TEST_CONFIG["CHROMIUM"] = self.MakeEmptyTempDirectory()
1052 json_output_file = os.path.join(TEST_CONFIG["CHROMIUM"], "out.json")
1053 TextToFile(self.FAKE_DEPS, os.path.join(TEST_CONFIG["CHROMIUM"], "DEPS"))
1054 TextToFile("", os.path.join(TEST_CONFIG["CHROMIUM"], ".git"))
1055 chrome_dir = TEST_CONFIG["CHROMIUM"]
1098 auto_roll.AutoRoll(TEST_CONFIG, self).Run(args)
1133 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS + ["--push"])
1136 % TEST_CONFIG["PERSISTFILE_BASENAME"]))
1141 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()
1142 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
1149 FileToText(TEST_CONFIG["TEMPORARY_PATCH_FILE"]))
1174 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
1177 os.path.join(TEST_CONFIG["DEFAULT_CWD"], VERSION_FILE))
1190 TEST_CONFIG["BRANCHNAME"], ""),
1219 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1223 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1227 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1231 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1235 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1239 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""),
1243 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""),
1261 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
1271 lambda: RollMerge(TEST_CONFIG, self).Run(args))
1275 RollMerge(TEST_CONFIG, self).Run(args)
1278 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()
1279 TextToFile("", os.path.join(TEST_CONFIG["DEFAULT_CWD"], ".git"))
1287 FileToText(TEST_CONFIG["TEMPORARY_PATCH_FILE"]))
1319 commit = FileToText(TEST_CONFIG["COMMITMSG_FILE"])
1328 TEST_CONFIG["BRANCHNAME"], ""),
1357 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1361 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1365 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1369 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1373 TEST_CONFIG["TEMPORARY_PATCH_FILE"]),
1376 Cmd("git commit -aF \"%s\"" % TEST_CONFIG["COMMITMSG_FILE"], ""),
1380 Cmd("git checkout -f %s" % TEST_CONFIG["BRANCHNAME"], ""),
1386 Cmd("git branch -D %s" % TEST_CONFIG["BRANCHNAME"], ""),
1396 lambda: MergeToBranch(TEST_CONFIG, self).Run(args))
1400 MergeToBranch(TEST_CONFIG, self).Run(args)