diff --git a/dev/bots/prepare_package.dart b/dev/bots/prepare_package.dart index 8885ed6ac5..4083c11a28 100644 --- a/dev/bots/prepare_package.dart +++ b/dev/bots/prepare_package.dart @@ -534,7 +534,7 @@ class ArchivePublisher { bool failOk = false, }) async { return _processRunner.runProcess( - ['gsutil']..addAll(args), + ['gsutil.py', '--']..addAll(args), workingDirectory: workingDirectory, failOk: failOk, ); @@ -561,7 +561,7 @@ class ArchivePublisher { args.addAll(['-h', 'Content-Type:$mimeType']); } args.addAll(['cp', src, dest]); - return _runGsUtil(args); + return await _runGsUtil(args); } } diff --git a/dev/bots/test/prepare_package_test.dart b/dev/bots/test/prepare_package_test.dart index 1b00996f82..614ae23b14 100644 --- a/dev/bots/test/prepare_package_test.dart +++ b/dev/bots/test/prepare_package_test.dart @@ -257,11 +257,11 @@ void main() { '''; File(jsonPath).writeAsStringSync(releasesJson); final Map> calls = >{ - 'gsutil rm $gsArchivePath': null, - 'gsutil -h Content-Type:$archiveMime cp $archivePath $gsArchivePath': null, - 'gsutil cp $gsJsonPath $jsonPath': null, - 'gsutil rm $gsJsonPath': null, - 'gsutil -h Content-Type:application/json cp $jsonPath $gsJsonPath': null, + 'gsutil.py -- rm $gsArchivePath': null, + 'gsutil.py -- -h Content-Type:$archiveMime cp $archivePath $gsArchivePath': null, + 'gsutil.py -- cp $gsJsonPath $jsonPath': null, + 'gsutil.py -- rm $gsJsonPath': null, + 'gsutil.py -- -h Content-Type:application/json cp $jsonPath $gsJsonPath': null, }; processManager.fakeResults = calls; final File outputFile = File(path.join(tempDir.absolute.path, archiveName));