Commits

Hugo Lopes Tavares committed 9de64d1

removed noisy from output

Comments (0)

Files changed (1)

 oneTimeSetUp() {
     rm -rf "$WORKON_HOME"
     mkdir -p "$WORKON_HOME"
-    source "$test_dir/../virtualenvwrapper.sh"
+    source "$test_dir/../virtualenvwrapper.sh" &> /dev/null
     echo $PYTHONPATH
 }
 
 }
 
 test_virtualenvwrapper_initialize() {
-    virtualenvwrapper_initialize
+    virtualenvwrapper_initialize &> /dev/null
     for hook in premkvirtualenv postmkvirtualenv prermvirtualenv postrmvirtualenv preactivate postactivate predeactivate postdeactivate
     do
         assertTrue "Global $hook was not created" "[ -f $WORKON_HOME/$hook ]"
     assertTrue "Log file was not created" "[ -f $WORKON_HOME/hook.log ]"
     export pre_test_dir=$(cd "$test_dir"; pwd)
     echo "echo GLOBAL initialize >> \"$pre_test_dir/catch_output\"" >> "$WORKON_HOME/initialize"
-    virtualenvwrapper_initialize
+    virtualenvwrapper_initialize &> /dev/null
     output=$(cat "$test_dir/catch_output")
     expected="GLOBAL initialize"
     assertSame "$expected" "$output"
 test_python_interpreter_set_incorrectly() {
     return_to="$(pwd)"
     cd "$WORKON_HOME"
-    mkvirtualenv --no-site-packages no_wrappers
+    mkvirtualenv --no-site-packages no_wrappers &> /dev/null
     expected="ImportError: No module named virtualenvwrapper.hook_loader"
     output=$(VIRTUALENVWRAPPER_PYTHON=$VIRTUAL_ENV/bin/python $SHELL $return_to/virtualenvwrapper.sh 2>&1)
-    echo "$output" | grep "$expected" 2>&1
+    echo "$output" | grep "$expected" &> /dev/null
     found=$?
     assertTrue "Expected \"$expected\", got: \"$output\"" "[ $found -eq 0 ]"
     assertFalse "Failed to detect invalid Python location" "VIRTUALENVWRAPPER_PYTHON=$VIRTUAL_ENV/bin/python $SHELL $return_to/virtualenvwrapper.sh >/dev/null 2>&1"
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.