Fixed test paths

This commit is contained in:
Nathan Broadbent
2011-10-18 00:39:35 +08:00
parent acd8e42ee9
commit 8222eeafe1
2 changed files with 10 additions and 10 deletions

View File

@@ -7,17 +7,17 @@
# #
# Unit tests for git shell scripts # Unit tests for git shell scripts
scmbDir="$( cd -P "$( dirname "$0" )" && pwd )" export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
# Zsh compatibility # Zsh compatibility
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
# Load test helpers # Load test helpers
. "$scmbDir/../../support/test_helper" . "$scmbDir/test/support/test_helper"
# Load functions to test # Load functions to test
. "$scmbDir/../../../lib/_shared.sh" . "$scmbDir/lib/_shared.sh"
. "$scmbDir/../../../lib/git/repo_management.sh" . "$scmbDir/lib/git/repo_management.sh"
# Setup and tear down # Setup and tear down
@@ -181,5 +181,5 @@ test_git_repo_tab_completion() {
# load and run shUnit2 # load and run shUnit2
# Call this function to run tests # Call this function to run tests
. "$scmbDir/../../support/shunit2" . "$scmbDir/test/support/shunit2"

View File

@@ -7,18 +7,18 @@
# #
# Unit tests for git shell scripts # Unit tests for git shell scripts
scmbDir="$( cd -P "$( dirname "$0" )" && pwd )" export scmbDir="$( cd -P "$( dirname "$0" )" && pwd )/../../.."
# Zsh compatibility # Zsh compatibility
if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi if [ -n "${ZSH_VERSION:-}" ]; then shell="zsh"; SHUNIT_PARENT=$0; setopt shwordsplit; fi
# Load test helpers # Load test helpers
. "$scmbDir/../../support/test_helper" . "$scmbDir/test/support/test_helper"
# Load functions to test # Load functions to test
. "$scmbDir/../../../lib/_shared.sh" . "$scmbDir/lib/_shared.sh"
. "$scmbDir/../../../lib/git/status_shortcuts.sh" . "$scmbDir/lib/git/status_shortcuts.sh"
# Setup and tear down # Setup and tear down
@@ -252,5 +252,5 @@ test_git_commit_prompt() {
# load and run shUnit2 # load and run shUnit2
. "$scmbDir/../../support/shunit2" . "$scmbDir/test/support/shunit2"