[issue9628] runtests.sh -x doesn't work with more than two args (sed error)

Dave Malcolm report at bugs.python.org
Tue Aug 17 18:29:37 CEST 2010


New submission from Dave Malcolm <dmalcolm at redhat.com>:

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)

----------
components: Tests
files: fix-sed-invocations-in-runtests.sh.patch
keywords: easy, needs review, patch, patch
messages: 114134
nosy: dmalcolm
priority: normal
severity: normal
stage: patch review
status: open
title: runtests.sh -x doesn't work with more than two args (sed error)
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file18554/fix-sed-invocations-in-runtests.sh.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9628>
_______________________________________


More information about the Python-bugs-list mailing list