From 31aac193fa1ea3f8913bc5bfee04c4097c99fb65 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Wed, 30 Apr 2014 16:33:10 -0700 Subject: [PATCH] make addon functional tests pass --- tests/command-line.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/command-line.test b/tests/command-line.test index 3a412bfd4..bda22b455 100644 --- a/tests/command-line.test +++ b/tests/command-line.test @@ -134,17 +134,17 @@ hledgerdev register -f/dev/null --alias=somealiases --rules-file -? -h --help -- # do "make addons" to set up for these: # 14. flags after an add-command are handled by the add-on -hledgerdev addon --help ->>> /args: --help/ +PATH=$PATH:tests/addons hledgerdev addon --help +>>> /hledger-addon/ >>>=0 # 15. add-on flags which are not also defined in the main executable are a problem -hledgerdev addon --addonflag +PATH=$PATH:tests/addons hledgerdev addon --addonflag >>>2 /Unknown flag: --addonflag/ >>>=1 # 16. hledger main executable ignores anything after -- (and hides the -- from the add-on) -hledgerdev addon --help -- --addonflag ->>> /args: --help --addonflag/ +PATH=$PATH:tests/addons hledgerdev addon --help -- --addonflag +>>> /hledger-addon/ >>>=0