aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorClement Delafargue <clement.delafargue@fretlink.com>2020-06-30 15:33:22 +0200
committerClement Delafargue <clement.delafargue@fretlink.com>2020-06-30 16:26:19 +0200
commit545c41a6694ac5273dbfe1a0e119be04eaeef468 (patch)
tree15e0e5387b686d25367f84614677904920913716
parent75a2a2fbcc31766e2debab1c8bd5cdce42f14fb7 (diff)
downloadansible-clever-545c41a6694ac5273dbfe1a0e119be04eaeef468.tar.gz
ansible-clever-545c41a6694ac5273dbfe1a0e119be04eaeef468.tar.zst
ansible-clever-545c41a6694ac5273dbfe1a0e119be04eaeef468.zip
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
-rwxr-xr-xtests/fake.sh3
1 files changed, 2 insertions, 1 deletions
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
13elif [ "${binary}" = "git" ]; then 13elif [ "${binary}" = "git" ]; then
14 echo "${localCommit}" 14 echo "${localCommit}"
15else 15else
16 echo "${1}" >> "${binary}-commands"
17 echo "${binary} called with arguments: ${*}" 16 echo "${binary} called with arguments: ${*}"
18fi 17fi
18
19echo "${1}" >> "${binary}-commands"