moveOriginalBucketBackToItsFirstLocation(movedBucketDirectory, bucket);
}
private void executeCopyScript(LocalBucket bucket, File copyScript,
File movedBucketDirectory) {
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);
}