@@ -116,7 +116,7 @@ main(arguments) {
116
116
});
117
117
}
118
118
119
- if (dartGen) {
119
+ if (dartGen || Platform .environment. containsKey ( 'COVERALLS_TOKEN' ) ) {
120
120
group ('sdk' , () {
121
121
// The analyzer does not bubble exception messages for certain internal
122
122
// dart:* library failures, such as failing to find
@@ -135,10 +135,13 @@ main(arguments) {
135
135
test ('devc dart:core' , () {
136
136
// Get the test SDK. We use a checked in copy so test expectations can
137
137
// be generated against a specific SDK version.
138
- var testSdk = path.join (testDir, '..' , 'tool' , 'input_sdk' );
138
+ var testSdk = dartGen
139
+ ? path.join (testDir, '..' , 'tool' , 'input_sdk' )
140
+ : path.join (testDir, 'generated_sdk' );
139
141
var result = compile ('dart:core' , testSdk, checkSdk: true );
140
142
var outputDir = new Directory (path.join (actualDir, 'core' ));
141
- var outFile = new File (path.join (actualDir, 'core/core' ));
143
+ var outFile = new File (
144
+ path.join (actualDir, dartGen ? 'core/core' : 'dart/core.js' ));
142
145
expect (outFile.existsSync (), true ,
143
146
reason: '${outFile .path } was created for dart:core' );
144
147
});
0 commit comments