@@ -3,7 +3,7 @@ var markdown = require('marked');
33var semver = require ( 'semver' ) ;
44var _s = require ( 'underscore.string' ) ;
55var shell = require ( 'shelljs' ) ;
6- var process = require ( 'child_process' ) ;
6+ var child_process = require ( 'child_process' ) ;
77var Q = require ( 'q' ) ;
88var helpers = require ( 'yeoman-generator' ) . test ;
99var fs = require ( 'fs-extra' ) ;
@@ -227,12 +227,20 @@ module.exports = function (grunt) {
227227
228228 shell . cd ( 'test/fixtures' ) ;
229229 grunt . log . ok ( 'installing npm dependencies for generated app' ) ;
230- process . exec ( 'npm install --quiet' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
230+ child_process . exec ( 'npm install --quiet' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
231231
232232 grunt . log . ok ( 'installing bower dependencies for generated app' ) ;
233- process . exec ( 'bower install' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
234- shell . cd ( '../../' ) ;
235- done ( ) ;
233+ child_process . exec ( 'bower install' , { cwd : '../fixtures' } , function ( error , stdout , stderr ) {
234+
235+ if ( ! process . env . SAUCE_USERNAME ) {
236+ child_process . exec ( 'npm run update-webdriver' , function ( ) {
237+ shell . cd ( '../../' ) ;
238+ done ( ) ;
239+ } ) ;
240+ } else {
241+ shell . cd ( '../../' ) ;
242+ done ( ) ;
243+ }
236244 } )
237245 } ) ;
238246 } ) ;
0 commit comments