From 4026e08797807f417b80ddf27fef43822f3fae10 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sat, 28 Dec 2019 21:08:27 -0800 Subject: [PATCH] ;tests: fix some func tests broken by c6da152e --- tests/addons/addons.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/addons/addons.test b/tests/addons/addons.test index 271461a86..7bc6e3b21 100644 --- a/tests/addons/addons.test +++ b/tests/addons/addons.test @@ -4,23 +4,23 @@ # they always run the first hledger executable in PATH # 1. flags after an add-command are handled by the add-on -$ PATH=$PATH:. hledger addon --help +$ PATH=$PATH:. hledger addon --help > /hledger-addon/ >=0 # 2. add-on flags which are not also defined in the main executable are a problem -$ PATH=$PATH:. hledger addon --addonflag +$ PATH=$PATH:. hledger addon --addonflag >2 /Unknown flag: --addonflag/ >=1 # 3. hledger main executable ignores anything after -- (and hides the -- from the add-on) -$ PATH=$PATH:. hledger addon --help -- --addonflag +$ PATH=$PATH:. hledger addon --help -- --addonflag > /hledger-addon/ >=0 # TODO how to reliably ensure no addons but still find the hledger executable ? # 4. having no addons shouldn't break the commands list -# $ PATH= ~/.local/bin/stack exec -- hledger +# $ PATH= ~/.local/bin/stack exec -- hledger # >=0 # ############################ issue 457 #####################################