new_variant: remove cb_variant from cq-depend
The cq-depend line can only specify CLs on the chromium or
chrome-internal gerrit instances. The 'cb_variant' step is a CL in
the coreboot gerrit, so remove it from the depends list for all
variants that use coreboot.org.
For Zork variants that are using coreboot-zork, remove the 'find'
step, as this step looks for an upstream CL that we won't have on
Zork for now.
To ensure that `git filter-branch` (which adds the Cq-Depend line)
will succeed, add the -f option so that remnants of previous
filter-branch operations won't cause a failure.
TEST=create a new variant and get it to the add_cq_depend step. Verify
that the fw_build_config CL does not include a CL in its cq-depend
line that starts with coreboot:
Tested-by: Paul Fagerburg <firstname.lastname@example.org>
Commit-Queue: Paul Fagerburg <email@example.com>
Reviewed-by: Jack Rosenthal <firstname.lastname@example.org>
5 files changed