diff --git a/lib/method.dart b/lib/method.dart index 966f3ea1b446911f51cff88920b22494516313b0..b2949b83070ca836208fd430a766a5cbe5ad84fd 100644 --- a/lib/method.dart +++ b/lib/method.dart @@ -13,18 +13,17 @@ class Method { String selectCommand(bool cond, String command, String last) { if (cond == true) { - print('+ $command'); // DEBUG + // print('+ $command'); // DEBUG return (last.isEmpty) ? command : last; } else { - print('- $command'); // DEBUG + // print('- $command'); // DEBUG return last; } } String getCommand() { String best = ''; - print("SRC: ${src.getFqdn()} -> DST: ${dst.getFqdn()}"); best = selectCommand( src.getFqdn() == dst.getFqdn() && src.isScpRemote(), "ssh ${src.getAsSsh()} 'cp ${opt.getAsCp()} ${src.getScpPath()} ${dst.getScpPath()}'", diff --git a/test/optimize_test.dart b/test/optimize_test.dart index 435ab7ce802eb79ab403c2ae65bf231bf4f1ba8e..ba38a0cff9d63f0fcdef8a2eb925ccdc0f8be35e 100644 --- a/test/optimize_test.dart +++ b/test/optimize_test.dart @@ -57,7 +57,7 @@ void main() { test('green example', () { expect(Optimize(Options( ["/storage/brno2/home/userB/data", "/storage/brno2/project/X"], reparse: true)), - "ssh storage-brno6.metacentrum.cz 'cp /home/userB/data /project/X'"); + "ssh storage-brno2.metacentrum.cz 'cp /home/userB/data /project/X'"); });