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

Issue 2748453002: Fix chrome/test/data/safe_browsing/dmg/generate_test_data.sh to not silently fail. (Closed)

Created:
3 years, 9 months ago by Robert Sesek
Modified:
3 years, 9 months ago
Reviewers:
Nico
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix chrome/test/data/safe_browsing/dmg/generate_test_data.sh to not silently fail. generate_test_data.sh uses `hdiutil create` and `hdiutil convert`. The former can overwrite an existing output file, but the latter cannot. This led to the following error: hdiutil: convert failed - File exists But this message was getting swallowed because the script 1) did not do `set -e` to stop on errors, and 2) redirect all output to /dev/null. This also fixes both of those issues. BUG=696529 R=thakis@chromium.org Review-Url: https://codereview.chromium.org/2748453002 Cr-Commit-Position: refs/heads/master@{#456141} Committed: https://chromium.googlesource.com/chromium/src/+/5fe29f761d6791d746bd7e058d6f3d79227cc117

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -7 lines) Patch
M chrome/test/data/safe_browsing/dmg/generate_test_data.sh View 5 chunks +10 lines, -4 lines 0 comments Download
M chrome/test/data/safe_browsing/dmg/make_hfs.sh View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (7 generated)
Robert Sesek
3 years, 9 months ago (2017-03-10 19:08:14 UTC) #3
Nico
lgtm
3 years, 9 months ago (2017-03-10 19:12:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2748453002/1
3 years, 9 months ago (2017-03-10 19:50:49 UTC) #8
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 20:00:06 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/5fe29f761d6791d746bd7e058d6f...

Powered by Google App Engine
This is Rietveld 408576698