]> git.immae.eu Git - github/fretlink/ansible-clever.git/commitdiff
fix(test): log all commads to `$binary-commands`
authorClement Delafargue <clement.delafargue@fretlink.com>
Tue, 30 Jun 2020 13:33:22 +0000 (15:33 +0200)
committerClement Delafargue <clement.delafargue@fretlink.com>
Tue, 30 Jun 2020 14:26:19 +0000 (16:26 +0200)
Previously, only the commands not directly handled by the stub were
logged. We want to log all commands instead

tests/fake.sh

index 0303b61cbeff465187a066b689d78affee67f4f4..65ff819ffd4b538c71d5dc91ed89829dc9fbf673 100755 (executable)
@@ -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"