@ Given ( "^I run '(.+?)' locally( with exit status '(.+?)')?( and save the value in environment variable '(.+?)')?$" ) public void executeLocalCommand ( String command , String foo , Integer exitStatus , String bar , String envVar ) throws Exception { if ( exitStatus == null ) { exitStatus = 0 ; } commonspec . runLocalCommand ( command ) ; commonspec . runCommandLoggerAndEnvVar ( exitStatus , envVar , Boolean . TRUE ) ; Assertions . assertThat ( commonspec . getCommandExitStatus ( ) ) . isEqualTo ( exitStatus ) ; }
Executes the command specified in local system