diff options
author | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-06-30 15:33:22 +0200 |
---|---|---|
committer | Clement Delafargue <clement.delafargue@fretlink.com> | 2020-06-30 16:26:19 +0200 |
commit | 545c41a6694ac5273dbfe1a0e119be04eaeef468 (patch) | |
tree | 15e0e5387b686d25367f84614677904920913716 /tests | |
parent | 75a2a2fbcc31766e2debab1c8bd5cdce42f14fb7 (diff) | |
download | ansible-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
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/fake.sh | 3 |
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 | |||
13 | elif [ "${binary}" = "git" ]; then | 13 | elif [ "${binary}" = "git" ]; then |
14 | echo "${localCommit}" | 14 | echo "${localCommit}" |
15 | else | 15 | else |
16 | echo "${1}" >> "${binary}-commands" | ||
17 | echo "${binary} called with arguments: ${*}" | 16 | echo "${binary} called with arguments: ${*}" |
18 | fi | 17 | fi |
18 | |||
19 | echo "${1}" >> "${binary}-commands" | ||