diff options
| author | Andy Smith <code@term.ie> | 2010-10-15 08:28:41 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-10-15 08:28:41 +0000 |
| commit | 694cecb3d6e03a088c6c2508c0bfdcfca2d978e1 (patch) | |
| tree | 068d040aee98ffa40c05b15d9fa41b0f25bb413d | |
| parent | 7a5ee7edf7660af00f2ad6b9c2a3273150bf4113 (diff) | |
| parent | e80e91bd653d16b069d82cb26990718daf38d0c2 (diff) | |
run_tests.sh presents a prompt:
No virtual environment found...create one? (Y/n)
However hitting enter to select the default (Y) actually selects 'n', this patch fixes that.
In all reality this should probably be slightly smarter and not accept invalid input as invalid input will mean "no" and probably result in an unexpected error depending on what the user has installed, but for now it will at least do what is expected in the "happy" case.
| -rwxr-xr-x | run_tests.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh index ec727d094..a11dcd7cc 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -55,7 +55,7 @@ else else echo -e "No virtual environment found...create one? (Y/n) \c" read use_ve - if [ "x$use_ve" = "xY" ]; then + if [ "x$use_ve" = "xY" -o "x$use_ve" = "x" -o "x$use_ve" = "xy" ]; then # Install the virtualenv and run the test suite in it python tools/install_venv.py else |
