ShellExecutor shellExecutor = ShellExecutor.getInstance();
Map<String, String> env = new HashMap<String, String>();
env.put("SPLUNK_HOME", new File(splunkHome).getAbsolutePath());
List<String> command = createCommand(bucket, copyScript,
movedBucketDirectory, "additional-parameter-to-sleep-the-script");
int exit = shellExecutor.executeCommand(env, command);
assertEquals(exit, 0);
}
private List<String> createCommand(LocalBucket bucket, File copyScript,
File movedBucketDirectory, String additionalParameter) {