pre-upload: rework main and its tests
The current main func tries to uses doctest module for verifying its
behavior. The trouble is that we don't use this module elsewhere in
CrOS, so no one ever notices it. The tests contained therein have
also rotted a bit and don't pass.
Rip the --test support out of the pre-upload.py file and merge them
into the existing unittest module.
Reviewed-by: Nam Nguyen <firstname.lastname@example.org>
Tested-by: Mike Frysinger <email@example.com>
2 files changed