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

Issue 11078007: Add test that test.dart returns non-zero exit code for failing runs. (Closed)

Created:
8 years, 2 months ago by Mads Ager (google)
Modified:
8 years, 2 months ago
Reviewers:
ricow1, ahe, Emily Fortuna
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Add test that test.dart returns non-zero exit code for failing runs. Additionally test that the buildbot output contains the @@@STEP_FAILURE@@@ marker. Rico and Emily, any other signals than exit code and @@@STEP_FAILURE@@@ that the buildbot uses to make builds red? I want to attempt to get this tested so it will be much harder to accidentally make failing builds turn up green. R=ahe@google.com,ricow@google.com,efortuna@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=13343

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
A tests/standalone/io/test_runner_exit_code_script.dart View 1 1 chunk +32 lines, -0 lines 0 comments Download
A tests/standalone/io/test_runner_exit_code_test.dart View 1 1 chunk +31 lines, -0 lines 5 comments Download

Messages

Total messages: 9 (0 generated)
Mads Ager (google)
8 years, 2 months ago (2012-10-06 16:19:27 UTC) #1
ricow1
LGTM, thanks a lot, this is great. There will still be cases where we can ...
8 years, 2 months ago (2012-10-06 16:38:52 UTC) #2
ricow1
On 2012/10/06 16:38:52, ricow1 wrote: > LGTM, thanks a lot, this is great. > There ...
8 years, 2 months ago (2012-10-06 16:40:38 UTC) #3
ahe
LGTM https://codereview.chromium.org/11078007/diff/1/tests/standalone/io/test_runner_exit_code_test.dart File tests/standalone/io/test_runner_exit_code_test.dart (right): https://codereview.chromium.org/11078007/diff/1/tests/standalone/io/test_runner_exit_code_test.dart#newcode9 tests/standalone/io/test_runner_exit_code_test.dart:9: Process.run(executable, [script, iterator.next()]).then((result) { You should compare the ...
8 years, 2 months ago (2012-10-08 07:12:37 UTC) #4
Mads Ager (google)
https://codereview.chromium.org/11078007/diff/1/tests/standalone/io/test_runner_exit_code_script.dart File tests/standalone/io/test_runner_exit_code_script.dart (right): https://codereview.chromium.org/11078007/diff/1/tests/standalone/io/test_runner_exit_code_script.dart#newcode5 tests/standalone/io/test_runner_exit_code_script.dart:5: // Simulates the a use of test_progress during a ...
8 years, 2 months ago (2012-10-08 07:28:45 UTC) #5
ahe
https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart File tests/standalone/io/test_runner_exit_code_test.dart (right): https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart#newcode7 tests/standalone/io/test_runner_exit_code_test.dart:7: void runTests(String executable, String script, Iterator iterator) { Consider ...
8 years, 2 months ago (2012-10-08 07:58:55 UTC) #6
Mads Ager (google)
https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart File tests/standalone/io/test_runner_exit_code_test.dart (right): https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart#newcode9 tests/standalone/io/test_runner_exit_code_test.dart:9: var progressIndicator = iterator.next(); On 2012/10/08 07:58:56, ahe wrote: ...
8 years, 2 months ago (2012-10-08 08:00:49 UTC) #7
ahe
https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart File tests/standalone/io/test_runner_exit_code_test.dart (right): https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runner_exit_code_test.dart#newcode9 tests/standalone/io/test_runner_exit_code_test.dart:9: var progressIndicator = iterator.next(); On 2012/10/08 08:00:49, Mads Ager ...
8 years, 2 months ago (2012-10-08 08:02:42 UTC) #8
Emily Fortuna
8 years, 2 months ago (2012-10-08 17:50:06 UTC) #9
https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runn...
File tests/standalone/io/test_runner_exit_code_test.dart (right):

https://codereview.chromium.org/11078007/diff/6/tests/standalone/io/test_runn...
tests/standalone/io/test_runner_exit_code_test.dart:13:
Expect.isTrue(result.stdout.contains("@@@STEP_FAILURE@@@"));
The "@@@STEP_FAILURE@@" string is only printed out for dart2js and browser bots.
The dart2dart, dartc and dart VM bots only use the exit code instead to detect
failure.

Powered by Google App Engine
This is Rietveld 408576698