Mike Frysinger 4b7fa1e97c cros_workon: check for board dir before creating dirs
If you pass an invalid board name, or a board that hasn't yet been setup,
cros_workon will happily create the dirs in /build/ for you.  For invalid
boards this isn't a big deal, but for valid ones, this can confuse build
steps later on like ./setup_board.

Change cros_workon to fail immediately if the desired dir under /build/
does not exist.  This will "break" using some operations such as "list"
on boards that were installed at one point but currently no longer are,
but cros_workon needs quite a bit more work in order for that workflow
to be supported (if anyone even cares).

BUG=None
TEST=`./cros_workon --board x86-marioffffff list` quit early

Change-Id: Ib83357d5d1c6383987a6d9e3dae1e86cf4864d82
Reviewed-on: https://gerrit.chromium.org/gerrit/18394
Reviewed-by: David James <davidjames@chromium.org>
Tested-by: Mike Frysinger <vapier@chromium.org>
Commit-Ready: Mike Frysinger <vapier@chromium.org>
2012-07-09 16:44:20 -07:00
2012-06-05 03:03:11 -07:00
2011-12-14 20:57:10 -08:00
2012-05-11 14:10:38 -07:00
2012-06-26 13:58:51 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2011-08-26 13:04:29 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
2012-05-11 14:10:38 -07:00
Description
image build and composition scripts for Flatcar Container Linux
BSD-3-Clause 167 MiB
Languages
Shell 93.1%
Python 6.9%