Add copying of ssh public keys to test VMs

mdbci public_keys command copies ssh public keys from given file to all created VMs
This commit is contained in:
Timofey Turenko
2019-04-15 13:48:19 +03:00
parent 7ecc70fd5d
commit 87741b7190

View File

@ -2102,6 +2102,13 @@ int TestConnections::call_mdbci(const char * options)
tprintf("MDBCI failed to bring up virtual machines"); tprintf("MDBCI failed to bring up virtual machines");
return 1; return 1;
} }
std::string team_keys = readenv("team_keys", "~/team_keys");
system((std::string("mdbci public_keys --key ") +
team_keys +
std::string(" ") +
std::string(mdbci_config_name)).c_str() );
read_env(); read_env();
if (repl) if (repl)
{ {