Browse Source

Update test.bats to update path

Add check if /usr/local/hestia/bin/ is loaded in $PATH variable
Jaap Marcus 4 years ago
parent
commit
177308b476
1 changed files with 4 additions and 0 deletions
  1. 4 0
      test/test.bats

+ 4 - 0
test/test.bats

@@ -1,5 +1,9 @@
 #!/usr/bin/env bats
 #!/usr/bin/env bats
 
 
+if [ "${PATH#*/usr/local/hestia/bin*}" = "$PATH" ]; then
+    . /etc/profile.d/hestia.sh
+fi
+
 load 'test_helper/bats-support/load'
 load 'test_helper/bats-support/load'
 load 'test_helper/bats-assert/load'
 load 'test_helper/bats-assert/load'
 load 'test_helper/bats-file/load'
 load 'test_helper/bats-file/load'