fixing echoing bug

This commit is contained in:
2022-06-10 15:52:20 +03:00
parent 2c12447bac
commit 9c16b1af53
3 changed files with 12 additions and 5 deletions

View File

@@ -2,9 +2,9 @@
BAKE=$( readlink -f ../bake )
internals() {
_yecho "flines function"
_assert_eq "$( cd internals; $BAKE flines | wc -l )" "4"
_assert_eq "$( cd internals; $BAKE flines | wc -l )" "5"
_yecho "commands function"
_assert_eq "$( cd internals; $BAKE commands )" "^target1$|^target2$|^flines$|^commands$"
_assert_eq "$( cd internals; $BAKE commands )" "^target1$|^target2$|^flines$|^commands$|^echoing$"
_yecho "Not a target should fail"
( cd internals; $BAKE non-existent ) && { _fail; } || { _pass; }