MCPcopy Index your code
hub / github.com/nodejs/node / testAutoPush

Method testAutoPush

deps/v8/tools/release/test_scripts.py:521–539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

519 auto_push.AutoPush, LastReleaseBailout, AUTO_PUSH_ARGS))
520
521 def testAutoPush(self):
522 self.Expect([
523 Cmd("git fetch", ""),
524 Cmd("git fetch origin +refs/heads/lkgr:refs/heads/lkgr", ""),
525 Cmd("git show-ref -s refs/heads/lkgr", "abc123\n"),
526 Cmd("git fetch origin +refs/tags/*:refs/tags/*", ""),
527 Cmd("git tag", self.TAGS),
528 Cmd("git log -1 --format=%H 3.22.4", "release_hash\n"),
529 Cmd("git log -1 --format=%s release_hash",
530 "Version 3.22.4 (based on abc3)\n"),
531 Cmd("git log --format=%H abc3..abc123", "some_stuff\n"),
532 ])
533
534 auto_push.AutoPush(TEST_CONFIG, self).Run(AUTO_PUSH_ARGS + ["--push"])
535
536 state = json.loads(FileToText("%s-state.json"
537 % TEST_CONFIG["PERSISTFILE_BASENAME"]))
538
539 self.assertEquals("abc123", state["candidate"])
540
541 def testRollMerge(self):
542 TEST_CONFIG["ALREADY_MERGING_SENTINEL_FILE"] = self.MakeEmptyTempFile()

Callers

nothing calls this directly

Calls 4

ExpectMethod · 0.95
CmdFunction · 0.85
FileToTextFunction · 0.85
RunMethod · 0.45

Tested by

no test coverage detected