From 8ee7bc5d4e647baaac8182278e789a5d844d3db9 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 3 Nov 2021 12:46:07 +0000 Subject: tests: remove unneeded hook tests FossilOrigin-Name: 1599e58bc8a7e85fee6400d249d9f53e4eb42e407e04e369d45240e6f3307e51 --- spec/01_lib_spec.sh | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'spec') diff --git a/spec/01_lib_spec.sh b/spec/01_lib_spec.sh index ebf7f66..c9a30db 100644 --- a/spec/01_lib_spec.sh +++ b/spec/01_lib_spec.sh @@ -165,12 +165,6 @@ Describe 'CPT Library' 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" - When call run_hook 3 cpt destdir root - The stderr should eq "-> cpt Running 3 hook" - The output should eq "$CPT_ROOT/etc/cpt-hook 3 cpt destdir" - The variable CPT_HOOK should eq "$PWD/tests/hook-file" - End It "returns with success even when the file doesn't exist" CPT_HOOK=$PWD/some-non-existent-file When call run_hook 4 thiswillnotrun @@ -178,14 +172,6 @@ Describe 'CPT Library' The stderr should eq "" The status should be success End - It "restores the \$CPT_HOOK variable when called with root" - CPT_ROOT=$PWD/nonexistentdir - When call run_hook 5 cpt dest root - The variable CPT_ROOT should not be exist - The stderr should eq "" - The status should be success - The variable CPT_HOOK should eq "$PWD/tests/hook-file" - End End Describe 'create_tmp()' After pkg_clean -- cgit v1.2.3