From: Clement Delafargue Date: Tue, 30 Jun 2020 13:33:22 +0000 (+0200) Subject: fix(test): log all commads to `$binary-commands` X-Git-Tag: v2.7~1^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=545c41a6694ac5273dbfe1a0e119be04eaeef468;p=github%2Ffretlink%2Fansible-clever.git fix(test): log all commads to `$binary-commands` Previously, only the commands not directly handled by the stub were logged. We want to log all commands instead --- diff --git a/tests/fake.sh b/tests/fake.sh index 0303b61..65ff819 100755 --- a/tests/fake.sh +++ b/tests/fake.sh @@ -13,6 +13,7 @@ elif [ "${binary}" = "clever" ] && [ "${1}" = "status" ]; then elif [ "${binary}" = "git" ]; then echo "${localCommit}" else - echo "${1}" >> "${binary}-commands" echo "${binary} called with arguments: ${*}" fi + +echo "${1}" >> "${binary}-commands"