tools: fixed problem with local test
authorFredrik Unger <fred@tree.se>
Wed, 6 Feb 2013 10:55:46 +0000 (11:55 +0100)
committerFredrik Unger <fred@tree.se>
Wed, 6 Feb 2013 10:55:46 +0000 (11:55 +0100)
commite97c082e9e05a2101b55cf7d155f1618edd31bfe
tree08d82483eb3369226ed9a3e88e4d4da43fa8f26f
parenta9d813f10e79ceb15009b01c47f9206fa37b7a49
tools: fixed problem with local test

The ssh_cmd needed a host to do the command, but for local tests
a host is not availible. Test for host and if not availible run locally.
rsync does not need that check.
treecutter/tools.py