aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2022-11-14 20:46:22 +0000
committermerakor <cem@ckyln.com>2022-11-14 20:46:22 +0000
commit58b0b323d934c3cf4127651b981c7c0e24910aad (patch)
tree841554f82dd093a96013946cc150dd4552b1f964
parent0d465189c89af2eafa6765915ccbdaa58d809d75 (diff)
downloadcpt-58b0b323d934c3cf4127651b981c7c0e24910aad.tar.gz
shellspec: fix shellcheck warning messages inside the test file
FossilOrigin-Name: f6ed9e242246f0aafbb6f1fc7b33baac368c92c1936ead686c42ed4a0783fc64
-rw-r--r--spec/02_src_spec.sh7
-rw-r--r--spec/03_contrib_spec.sh9
2 files changed, 9 insertions, 7 deletions
diff --git a/spec/02_src_spec.sh b/spec/02_src_spec.sh
index 84ed7af..2c20849 100644
--- a/spec/02_src_spec.sh
+++ b/spec/02_src_spec.sh
@@ -1,7 +1,8 @@
Describe 'Main toolchain'
- export PATH=$PWD/src:$PATH
- export CPT_ROOT=$PWD/tests/02
- export CPT_PATH=$PWD/tests/repository
+ PATH=$PWD/src:$PATH
+ CPT_ROOT=$PWD/tests/02
+ CPT_PATH=$PWD/tests/repository
+ export PATH CPT_ROOT CPT_PATH
install_dummy() { CPT_HOOK='' ./src/cpt bi dummy-pkg >/dev/null 2>&1 ;}
remove_dummy() { rm -rf "${CPT_ROOT:?}/var" ;}
BeforeAll install_dummy
diff --git a/spec/03_contrib_spec.sh b/spec/03_contrib_spec.sh
index d9fcd30..b3d6df4 100644
--- a/spec/03_contrib_spec.sh
+++ b/spec/03_contrib_spec.sh
@@ -1,8 +1,9 @@
Describe 'contrib scripts'
- export PATH=$PWD/src:$PWD/contrib:$PATH
- export CPT_ROOT=$PWD/tests/03
- export CPT_PATH=$PWD/tests/repository
- export CPT_COMPRESS=''
+ PATH=$PWD/src:$PWD/contrib:$PATH
+ CPT_ROOT=$PWD/tests/03
+ CPT_PATH=$PWD/tests/repository
+ CPT_COMPRESS=''
+ export PATH CPT_ROOT CPT_PATH CPT_COMPRESS
install_tmp() {
CPT_HOOK='' ./src/cpt b -y contrib-dummy-pkg >/dev/null 2>&1
CPT_HOOK='' ./src/cpt-install -y contrib-dummy-pkg >/dev/null 2>&1