Fixes passing parameters to Nose when running tests.

Review Request #940 — Created Aug. 5, 2009 and discarded — Latest diff uploaded

Information

Review Board SVN (deprecated)

Reviewers

MOVED!!

REVIEW NOW AT: http://reviews.review-board.org/r/995

./manage.py captures any parameter passed before an optional "--", so
running:

./manage.py test -s

to pass the -s to nose (to make it not capture stdout) doesn't work,
and manage.py dies with a "no such option" error. But if you just do:

./manage.py test -- -s

with the way things were before this patch, the whole "-- -s" would be passed to nose, which would ignore everything after "--" and pass "-s" to the next command, resulting in yet another error. Now we do the right thing, and the above command works.
Ran ./manage.py test -- -s and nose ran without capturing stdout.
    Loading...