Home | History | Annotate | Download | only in site_utils

Lines Matching refs:run_cmd

34     def testUpdateProdBranchWithNoNewChanges(self, run_cmd):
37 @param run_cmd: Mock of infra.local_runner call used.
39 run_cmd.return_value = None
43 run_cmd.assert_has_calls(expect_cmds)
47 def testUpdateProdBranchRebaseToCorrectHash(self, run_cmd):
50 @param run_cmd: Mock of infra.local_runner call used.
52 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
58 run_cmd.assert_has_calls(expect_cmds)
62 def testUpdateProdBranchRebaseToProdNext(self, run_cmd):
65 @param run_cmd: Mock of infra.local_runner call used.
67 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
75 run_cmd.assert_has_calls(expect_cmds)
79 def testUpdateProdBranchParseCommitRange(self, run_cmd):
82 @param run_cmd: Mock of infra.local_runner call used.
84 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None, self.PUSH_LOG]
90 def testUpdateProdBranchFailToParseCommitRange(self, run_cmd):
93 @param run_cmd: Mock of infra.local_runner call used.
95 run_cmd.side_effect = [self.GIT_LOG_FOR_COMMITS, None,
102 def testGetPushedCommits(self, run_cmd):
105 @param run_cmd: Mock of infra.local_runner call used.
110 run_cmd.return_value = fake_commits_logs
120 run_cmd.assert_called_with(expect_git_log_cmd, stream_output=True)
130 run_cmd.assert_called_with(expect_git_log_cmd, stream_output=True)