- cleanup local state before exiting,
- move cl upload to a separate function for readability.
Bug: 243966946
Test: run locally
Change-Id: If66d52168abc2e4878fe99255397d7432874e141
For finalization CI we'll do multiple builds and tests in a separate
branch.
Bug: 243966946
Test: abdt in nightly
Change-Id: Ie90705de3145c06363536613e57c0de504b5eb1b