Add addl wf_root test
This commit is contained in:
@@ -61,7 +61,7 @@ testNoramlizeDirOfFile001() {
|
||||
assertEquals "$expected" "$out/tests/.."
|
||||
}
|
||||
|
||||
testWfRoot() {
|
||||
testWfRoot001() {
|
||||
expected=$(normalize_dir_of_file "$DIR/../install.sh")
|
||||
|
||||
dir=$(mktemp -d --tmpdir would-reformat-testProjectRoot001.XXXXXX)
|
||||
@@ -69,7 +69,17 @@ testWfRoot() {
|
||||
git init >/dev/null 2>&1
|
||||
"$DIR"/../install.sh 2>&2 >/dev/null
|
||||
|
||||
got=$(wf_root "$(pwd)")
|
||||
got=$(wf_root)
|
||||
|
||||
assertEquals "$expected" "$got"
|
||||
}
|
||||
|
||||
testWfRoot002() {
|
||||
expected=$(normalize_dir_of_file "$DIR/../install.sh")
|
||||
|
||||
export WF_ROOT="$expected"
|
||||
|
||||
got=$(wf_root)
|
||||
|
||||
assertEquals "$expected" "$got"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user