int returnCode = nativeCommand.run(cmds);
if(log.isDebugEnabled()) {
log.debug("Ran :"+cmdLine + " using working directory:"+directory.getAbsolutePath()+
" with execution environment:"+nativeCommand.getExecutionEnvironment());
}
results.sampleEnd();
if (checkReturnCode && (returnCode != expectedReturnCode)) {
results.setSuccessful(false);
responseData = "System did not return expected return code. Expected ["+expectedReturnCode+"]. Returned ["+returnCode+"].";
results.setSampleLabel("FAILED: " + getName());