Skip to content

Commit 2aa7970

Browse files
committed
get the output in a way that makes it work properly with grep
1 parent 7ac201d commit 2aa7970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_mkvirtualenv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ test_no_workon_home () {
8181
export WORKON_HOME="$WORKON_HOME/not_there"
8282
mkvirtualenv should_be_created >"$old_home/output" 2>&1
8383
output=$(cat "$old_home/output")
84-
assertTrue "Did not see expected message" "echo $output | grep 'does not exist'"
84+
assertTrue "Did not see expected message in \"$output\"" "cat \"$old_home/output\" | grep 'does not exist'"
8585
assertTrue "Did not create environment" "[ -d \"$WORKON_HOME/should_be_created\" ]"
8686
WORKON_HOME="$old_home"
8787
}

0 commit comments

Comments
 (0)