This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author dmalcolm
Recipients dmalcolm
Date 2010-08-17.16:29:34
SpamBayes Score 3.4675708e-07
Marked as misclassified No
Message-id <1282062577.36.0.157889963246.issue9628@psf.upfronthosting.co.za>
In-reply-to
Content
runtests.sh -x fails to work with more than two tests; for example, running:
  $ ./runtests.sh -x test_httplib test_http_cookies test_dl
erroneously runs test_dl

By default, "sed -e s" only substitutes the first match - the invocations within runtests.sh need to add the trailing "g" flag to  substitute all matches.

From "info sed":
   The `s' command can be followed by zero or more of the following
FLAGS:
`g'
     Apply the replacement to _all_ matches to the REGEXP, not just the
     first.

Am attaching a patch.

(Seen with sed-4.2.1 on Fedora 13)
History
Date User Action Args
2010-08-17 16:29:37dmalcolmsetrecipients: + dmalcolm
2010-08-17 16:29:37dmalcolmsetmessageid: <1282062577.36.0.157889963246.issue9628@psf.upfronthosting.co.za>
2010-08-17 16:29:35dmalcolmlinkissue9628 messages
2010-08-17 16:29:34dmalcolmcreate