'.' => 'source' (some people alias '.' as something different)
This commit is contained in:
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/design.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/design.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -83,5 +83,5 @@ test_design() {
|
||||
|
||||
# load and run shUnit2
|
||||
# Call this function to run tests
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/git/repo_index.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/git/repo_index.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -190,5 +190,5 @@ test_changing_to_top_level_directory() {
|
||||
|
||||
# load and run shUnit2
|
||||
# Call this function to run tests
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ else
|
||||
fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Setup
|
||||
#-----------------------------------------------------------------------------
|
||||
@@ -69,4 +69,4 @@ test_shell_command_wrapping() {
|
||||
|
||||
|
||||
# load and run shUnit2
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
@@ -13,11 +13,11 @@ export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
|
||||
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
|
||||
|
||||
# Load test helpers
|
||||
. "$scmbDir/test/support/test_helper"
|
||||
source "$scmbDir/test/support/test_helper"
|
||||
|
||||
# Load functions to test
|
||||
. "$scmbDir/lib/scm_breeze.sh"
|
||||
. "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
source "$scmbDir/lib/scm_breeze.sh"
|
||||
source "$scmbDir/lib/git/status_shortcuts.sh"
|
||||
|
||||
|
||||
# Setup and tear down
|
||||
@@ -274,5 +274,5 @@ test_adding_files_with_spaces() {
|
||||
|
||||
|
||||
# load and run shUnit2
|
||||
. "$scmbDir/test/support/shunit2"
|
||||
source "$scmbDir/test/support/shunit2"
|
||||
|
||||
|
||||
@@ -1015,7 +1015,7 @@ noexec 2>/dev/null || _shunit_fatal \
|
||||
|
||||
# we must manually source the tests in standalone mode
|
||||
if [ "${__shunit_mode}" = "${__SHUNIT_MODE_STANDALONE}" ]; then
|
||||
. "`_shunit_prepForSourcing \"${__shunit_script}\"`"
|
||||
source "`_shunit_prepForSourcing \"${__shunit_script}\"`"
|
||||
fi
|
||||
|
||||
# execute the oneTimeSetUp function (if it exists)
|
||||
|
||||
Reference in New Issue
Block a user