From 1ff783d1ccb17fbf702f352812ae7eb834fed3ee Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 8 Sep 2021 17:34:12 +0000 Subject: log(): change print function depending on number of arguments FossilOrigin-Name: 9628d8c0a2b3f6cb9b78898701aace71a1f4d1aec8b98b55f75acb34c21b4ddd --- spec/01_lib_spec.sh | 2 +- spec/02_src_spec.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spec') diff --git a/spec/01_lib_spec.sh b/spec/01_lib_spec.sh index b56ac32..29bd05a 100644 --- a/spec/01_lib_spec.sh +++ b/spec/01_lib_spec.sh @@ -162,7 +162,7 @@ Describe 'CPT Library' End It "doesn't log 'running hook' if no package is given" When call run_hook 2 '' destination - The stderr should eq "-> Running 2 hook " + The stderr should eq "-> Running 2 hook" The output should eq "$CPT_HOOK 2 null destination" End It "uses the /etc/cpt-hook file of the root when called with a fourth arg" diff --git a/spec/02_src_spec.sh b/spec/02_src_spec.sh index be81775..5286ab9 100644 --- a/spec/02_src_spec.sh +++ b/spec/02_src_spec.sh @@ -20,7 +20,7 @@ Describe 'Main toolchain' Describe '--help' It 'outputs usage information' When run script src/cpt --help - The line 1 of stderr should eq "-> Carbs Packaging Tool " + The line 1 of stderr should eq "-> Carbs Packaging Tool" End End -- cgit v1.2.3