Skip to content

Commit 04eb339

Browse files
committed
quiet some test operations and check for error codes before continuing
1 parent 89a2e39 commit 04eb339

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tests/test.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ test_virtualenvwrapper_verify_workon_home_missing_dir_grep_options() {
8484
test_python_interpreter_set_incorrectly() {
8585
return_to="$(pwd)"
8686
cd "$WORKON_HOME"
87-
mkvirtualenv no_wrappers
87+
mkvirtualenv no_wrappers >/dev/null 2>&1
88+
RC=$?
89+
assertEquals "0" "$RC"
8890
expected="ImportError: No module named virtualenvwrapper.hook_loader"
8991
# test_shell is set by tests/run_tests
9092
if [ "$test_shell" = "" ]

tests/test_cp.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ tearDown() {
2121

2222
test_new_env_activated () {
2323
mkvirtualenv "source" >/dev/null 2>&1
24+
RC=$?
25+
assertEquals "0" "$RC"
2426
(cd tests/testpackage && python setup.py install) >/dev/null 2>&1
2527
cpvirtualenv "source" "destination" >/dev/null 2>&1
2628
rmvirtualenv "source" >/dev/null 2>&1

0 commit comments

Comments
 (0)