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

Issue 4153001: Fix two very broken tests for null strings in archive_build.sh (Closed)

Created:
10 years, 1 month ago by jrbarnette
Modified:
9 years, 6 months ago
CC:
chromium-os-reviews_chromium.org, Mandeep Singh Baines, anush, sosa
Visibility:
Public.

Description

Fix two very broken tests for null strings in archive_build.sh Change-Id: I7c5d251ab1ae020c3ae8a10ca017c34a02eff893 BUG=None TEST=./archive_build.sh --test_mod TEST=./archive_build.sh --test_mod --from=../build/images/x86-generic TEST=./archive_build.sh --board=x86-generic --gsutil_archive=/tmp --gsutil=echo TEST=./archive_build.sh --board=x86-generic --gsutil_archive=/tmp --gsutil=echo --gsd_gen_index=echo Committed: http://chrome-svn/viewvc/chromeos?view=rev&revision=e1010d8

Patch Set 1 #

Total comments: 3

Patch Set 2 : Update for review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M archive_build.sh View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jrbarnette
I discovered this bug while (belatedly) reviewing this CL: http://codereview.chromium.org/3978005/show There are two tests for ...
10 years, 1 month ago (2010-10-26 01:11:24 UTC) #1
Nick Sanders
lgtm good catch! I looked right at it and didn't notice. Possibly we could just ...
10 years, 1 month ago (2010-10-26 01:26:18 UTC) #2
jrbarnette
On 2010/10/26 01:26:18, Nick Sanders wrote: > lgtm > > good catch! I looked right ...
10 years, 1 month ago (2010-10-26 16:50:59 UTC) #3
David James
http://codereview.chromium.org/4153001/diff/1/2 File archive_build.sh (right): http://codereview.chromium.org/4153001/diff/1/2#newcode70 archive_build.sh:70: if [ -z "$DEFAULT_USED" ] This code actually works ...
10 years, 1 month ago (2010-10-26 17:06:51 UTC) #4
jrbarnette
On 2010/10/26 17:06:51, David James wrote: > http://codereview.chromium.org/4153001/diff/1/2 > File archive_build.sh (right): > > http://codereview.chromium.org/4153001/diff/1/2#newcode70 ...
10 years, 1 month ago (2010-10-26 17:24:06 UTC) #5
jrbarnette
> just wrong, so (to cite examples): > [ -z $FUBAR ] is equivalent to ...
10 years, 1 month ago (2010-10-26 17:26:55 UTC) #6
jrbarnette
10 years, 1 month ago (2010-10-26 17:48:19 UTC) #7
On 2010/10/26 16:50:59, jrbarnette wrote:
[ ... ]
> I'm looking to see if I can exercise the second code path without actually
> invoking gsutil; if I can't, I'll push, on strength of the obviousness of
> this fix...

Testing the gsutil code path turned out to be easy; the tests have passed,
and the description shows the various test command lines I used.  Both
changed code paths were exercised, both for true and false conditions.

At this point, I'm ready to go.  Y'all can have a half hour for any last minute
extra observations, after which I push.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698