From 49ed40a3019676fa13250e31352fad271e5cd99d Mon Sep 17 00:00:00 2001 From: Brice Fernandes Date: Mon, 13 Nov 2017 13:13:51 +0000 Subject: [PATCH] Add test function to recover clean output from command run on remote host --- test/config.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/config.sh b/test/config.sh index 6ed34cf4..0653c755 100644 --- a/test/config.sh +++ b/test/config.sh @@ -104,6 +104,13 @@ run_on() { remote $host $SSH $host "$@" } +get_command_output_on() { + host=$1 + shift 1 + [ -z "$DEBUG" ] || greyly echo "Running on $host: $@" >&2 + $SSH $host "$@" +} + docker_on() { host=$1 shift 1