Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Issue 3352002: cros_workon: print out short summary of what has been done for start/stop (Closed)

Created:
10 years, 3 months ago by zbehan
Modified:
9 years, 7 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

cros_workon: print out short summary of what has been done for start/stop BUG=6325 TEST=cros_workon start and stop for board and host and see it work Change-Id: Ic0680a273391fdf93b6ebbe0e34497807f31f240

Patch Set 1 #

Patch Set 2 : Added if checks #

Patch Set 3 : We can't use just success, if deleting the last package, grep returns 1 #

Patch Set 4 : Replaced grep with sed #

Patch Set 5 : Addressed a nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M cros_workon View 1 2 3 4 3 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
zbehan
10 years, 3 months ago (2010-09-02 00:34:35 UTC) #1
kliegs1
A bit worried that the outputs don't depend on the command succeeding. This could lead ...
10 years, 3 months ago (2010-09-02 00:56:38 UTC) #2
zbehan
They do. On Wed, Sep 1, 2010 at 5:56 PM, Jonathan Kliegman <kliegs@google.com> wrote: > ...
10 years, 3 months ago (2010-09-02 02:08:23 UTC) #3
Mandeep Singh Baines
Not a fan of chatty tools. This violates "silence is golden". If you really want ...
10 years, 3 months ago (2010-09-02 03:25:03 UTC) #4
zbehan
The explanation is in bug 6325, and I think this is a very valid concern. ...
10 years, 3 months ago (2010-09-02 04:25:36 UTC) #5
kliegs1
They print messages even on failure. for atom in ${atoms}; do if ! grep -qx ...
10 years, 3 months ago (2010-09-02 04:45:54 UTC) #6
zbehan
So i think one of us must be confused here. What I believe this code ...
10 years, 3 months ago (2010-09-02 05:06:30 UTC) #7
kliegs1
What I meant was that if the sudo command fails for whatever reason or the ...
10 years, 3 months ago (2010-09-02 06:36:23 UTC) #8
zbehan
I see, that makes sense. Would it help if i changed that into sudo bash ...
10 years, 3 months ago (2010-09-02 06:53:05 UTC) #9
Mandeep Singh Baines
Zdenek Behan (zbehan@chromium.org) wrote: > The explanation is in bug 6325, and I think this ...
10 years, 3 months ago (2010-09-02 17:21:30 UTC) #10
zbehan
I think you should set your bar of reasonableness to 400 lines. You can only ...
10 years, 3 months ago (2010-09-02 17:35:50 UTC) #11
zbehan
10 years, 3 months ago (2010-09-02 22:13:32 UTC) #12
Mandeep Singh Baines
LGTM
10 years, 3 months ago (2010-09-02 23:57:18 UTC) #13
zbehan
10 years, 3 months ago (2010-09-03 00:48:33 UTC) #14
kliegs
The $? response on grep -v behaves differently than without -v Grep returns 0 if ...
10 years, 3 months ago (2010-09-03 15:14:44 UTC) #15
zbehan
The point is, we're testing for error coming out of grep, not whether it found ...
10 years, 3 months ago (2010-09-03 16:50:10 UTC) #16
kliegs
kliegs@kliegs-chrome:~/foo/greps$ sudo bash -c "grep -v 'd' bar > /fdsa/asdf" bash: /fdsa/asdf: No such file ...
10 years, 3 months ago (2010-09-03 17:13:48 UTC) #17
zbehan
10 years, 3 months ago (2010-09-03 20:59:21 UTC) #18
zbehan
Jonathan, Try this. On Fri, Sep 3, 2010 at 1:59 PM, <zbehan@chromium.org> wrote: > http://codereview.chromium.org/3352002/show ...
10 years, 3 months ago (2010-09-03 21:00:01 UTC) #19
kliegs
My sed is a bit weak and its late so not sure about the changes ...
10 years, 3 months ago (2010-09-03 22:33:18 UTC) #20
Mandeep Singh Baines
LGTM
10 years, 3 months ago (2010-09-03 23:14:56 UTC) #21
Mandeep Singh Baines
I think we should get this in now. If there are follow-up comments, they can ...
10 years, 3 months ago (2010-09-03 23:17:38 UTC) #22
zbehan
10 years, 3 months ago (2010-09-04 00:02:45 UTC) #23
kliegs
10 years, 3 months ago (2010-09-04 00:20:49 UTC) #24
LGTM with nits/caveats that can be resolved in separate CL's

This fixes the main concerns I have so signing off.  I'm just not positive the
sed commands work (inability to test/verify - they look fine I'm just not
confident in my ability to identify a problem with them tonight).

The nit I have is that regen_manifest_and_sync doesn't handle errors properly. 
zbehan is opening a separate bug to address that issue.

Powered by Google App Engine
This is Rietveld 408576698