Fix a couple bugs found when turning on archiving for nplus1 updates from cbuildbot.
1) Change join marker from -- to _ as it's much more human readable.
-- meaning payloads look like chromeos_R16-1024.0.0-a1_x86-zgb_full_dev.bin
2) Reading from last local build wasn't working correctly as I wasn't passing
any information about the folder (no name was embedded so no version). Fixed
to archive into latest_download/<version>/chromiumos_test_image.bin. This
also had the side-benefit of not having to have me repro this each time I test
3) New 3-version logic had broken my regexp unnoticed.
TEST=Ran ctest with local copy of what's stored on one of the builders.
Tested-by: Chris Sosa <email@example.com>
Reviewed-by: Dale Curtis <firstname.lastname@example.org>
2 files changed