new_variant: find the upstreamed coreboot CL

After a coreboot patch is merged, it will get upstreamed to the
chromiumos tree as part of a batch. The change-id from the coreboot
gerrit instance will be preserved as original-change-id, so search
for that to find the upstreamed CL in chromiumos gerrit.

Change the messages about doing things outside of
(like generating the fitimage, pushing to coreboot, or waiting for
upstream) from info to error, because these are technically error
conditions that prevent the program from continuing.

TEST=Check operation when the coreboot CL hasn't been pushed yet,
when it hasn't been upstreamed yet, and when it has been upstreamed.
See testdata/ for detailed instructions.

Change-Id: I9f701664d849197cf183fc1fb46f7523095c359c
Tested-by: Paul Fagerburg <>
Tested-by: Martin Roth <>
Reviewed-by: Martin Roth <>
Reviewed-by: Jack Rosenthal <>
Commit-Queue: Paul Fagerburg <>
5 files changed