Commit 69305a7a035891b91170410b1b39f33d0c103981

Authored by Antonio Terceiro
1 parent db3d6cbf

run_on: send commands in a pipe

Otherwise ssh will call bash -c "COMMAND", which is matched when you do
things like `run_on $machine pgrep -fa PROCESS` (ssh runs bash -c 'pgrep
-fa PROCESS').
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/test_helper.sh
... ... @@ -4,7 +4,7 @@ export ROOTDIR="$(readlink -f $(dirname $0)/..)"
4 4 run_on() {
5 5 local vm="$1"
6 6 shift
7   - ssh -F .ssh_config "$vm" -- 'export PATH=/vagrant/test/bin:$PATH;' "$@"
  7 + echo 'export PATH=/vagrant/test/bin:$PATH;' "$@" | ssh -F .ssh_config "$vm"
8 8 }
9 9  
10 10 . $(dirname $0)/ip_helper.sh
... ...