public static Map<String, String> createLocalTestEnvAndInit(String machineName, Map<String, String> connectionProperties) throws Exception {
Map<String, String> client = createLocalTestEnv(machineName, connectionProperties);
String[] initArgs = new String[] {
"--localdir", client.get("localdir"),
"init",
"--plugin", "local",
"--plugin-option", "path=" + client.get("repopath"),
"--no-encryption",
"--no-compression",
};
logger.log(Level.INFO, "Running syncany with argument: " + StringUtil.join(initArgs, " "));
new CommandLineClient(initArgs).start();
fixMachineName(client);
return client;
}