@@ -18,6 +18,7 @@ import { fs } from '../../../shared'
1818import path from 'path'
1919import { ChildProcess } from '../../../shared/utilities/processUtils'
2020import { isMac , isWin } from '../../../shared/vscode/env'
21+ import { inspect } from '../../../shared/utilities/collectionUtils'
2122
2223describe ( 'Ec2ConnectClient' , function ( ) {
2324 let client : Ec2Connecter
@@ -227,12 +228,14 @@ describe('getRemoveLinesCommand', async function () {
227228 const textFile = path . join ( tempPath . uri . fsPath , 'test.txt' )
228229 const originalContent = lineToStr ( lines )
229230 await fs . writeFile ( textFile , originalContent )
230- console . log ( 'running on os: %s' , hostOS )
231231 const [ command , ...args ] = getRemoveLinesCommand ( 'pattern' , hostOS , textFile ) . split ( ' ' )
232- console . log ( 'running command: %s with args %s' , command , args . join ( ' ' ) )
233232 const process = new ChildProcess ( command , args , { collect : true } )
234233 const result = await process . run ( )
235- assert . strictEqual ( result . exitCode , 0 , `ChildProcess failed with error=${ result . error } ` )
234+ assert . strictEqual (
235+ result . exitCode ,
236+ 0 ,
237+ `Ran command '${ command } ${ args . join ( ' ' ) } ' and failed with result ${ inspect ( result ) } `
238+ )
236239
237240 const newContent = await fs . readFileText ( textFile )
238241 assert . notStrictEqual ( newContent , originalContent )
0 commit comments