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

Issue 9158011: Fix dartc.sh script to use /bin/bash (issue dart:1104) (Closed)

Created:
8 years, 11 months ago by Bill Hesse
Modified:
8 years, 11 months ago
Reviewers:
ricow1, ahe, mmendez, zundel
CC:
reviews_dartlang.org, zundel, mmendez
Visibility:
Public.

Description

Fix an error on the buildbots where the dartc shell script was throwing an error. Also, improve error output from test.dart. Add verbose output from the dartc bash script, and separators between compilation and execution phase output in the test.dart browser tests. BUG=dart:1104 TEST=tools/test.dart -cchromium language Committed: https://code.google.com/p/dart/source/detail?r=3143

Patch Set 1 #

Total comments: 9

Patch Set 2 : Fix script problem on buildbot (issue dart:1104( #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -2 lines) Patch
M compiler/scripts/dartc.sh View 1 1 chunk +1 line, -1 line 2 comments Download
M tools/testing/dart/test_runner.dart View 2 chunks +11 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Bill Hesse
http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh File compiler/scripts/dartc.sh (right): http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh#newcode1 compiler/scripts/dartc.sh:1: #!/bin/bash Remove this change?
8 years, 11 months ago (2012-01-10 13:09:09 UTC) #1
ahe
LGTM @zundel+mmendez: Bill is trying to diagnose a test failure when using test.dart to test ...
8 years, 11 months ago (2012-01-10 13:55:03 UTC) #2
zundel
lgtm http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh File compiler/scripts/dartc.sh (right): http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh#newcode5 compiler/scripts/dartc.sh:5: set -e if this is going to stay ...
8 years, 11 months ago (2012-01-10 14:04:52 UTC) #3
Bill Hesse
http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh File compiler/scripts/dartc.sh (right): http://codereview.chromium.org/9158011/diff/1/compiler/scripts/dartc.sh#newcode1 compiler/scripts/dartc.sh:1: #!/bin/bash Changing to /bin/bash --posix to agree with the ...
8 years, 11 months ago (2012-01-10 14:13:52 UTC) #4
mmendez
DBC I'm not really sure what failure specifically the buildbots were seeing, but I'll trust ...
8 years, 11 months ago (2012-01-10 14:27:01 UTC) #5
ricow1
8 years, 11 months ago (2012-01-10 14:34:07 UTC) #6
http://codereview.chromium.org/9158011/diff/1003/compiler/scripts/dartc.sh
File compiler/scripts/dartc.sh (right):

http://codereview.chromium.org/9158011/diff/1003/compiler/scripts/dartc.sh#ne...
compiler/scripts/dartc.sh:1: #!/bin/bash --posix
On 2012/01/10 14:27:01, mmendez wrote:
> I'm not a scripting guru, but why does using bash fix the problem?  Isn't that
> less standard?
Here is the deal: On our normal linux boxes /bin/sh points at /bin/bash
ricow@nobby:~$ lsl /bin/sh
lrwxrwxrwx 1 root root 9 2010-10-01 14:46 /bin/sh -> /bin/bash

On the buildbot, it points at /bin/dash
chrome-bot@vm26-m3:~$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2010-10-08 16:24 /bin/sh -> dash

Now, dash does not support the variable substitution inside a string, so that
will be an error!
I expect this to be the case for normal Ubuntu users as well

Powered by Google App Engine
This is Rietveld 408576698