From: R. David Murray Date: Tue, 28 Sep 2010 22:25:18 +0000 (+0000) Subject: #9628: fix runtests.sh -x option so more than one test can be excluded. X-Git-Tag: v3.2a3~114 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b78b4893a92b10e41fdcedd72be0d310fa31988d;p=thirdparty%2FPython%2Fcpython.git #9628: fix runtests.sh -x option so more than one test can be excluded. --- diff --git a/Misc/NEWS b/Misc/NEWS index 434a443ae41f..34fd5121ea9d 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -260,6 +260,8 @@ Tools/Demos Tests ----- +- Issue #9628: fix runtests.sh -x option so more than one test can be excluded. + - Issue #9899: Fix test_tkinter.test_font on various platforms. Patch by Ned Deily. diff --git a/runtests.sh b/runtests.sh index 2d3cfc8969be..d7b464676185 100755 --- a/runtests.sh +++ b/runtests.sh @@ -55,7 +55,7 @@ case "$#$EXCEPT" in TESTS=`(cd Lib/test; ls test_*.py | sed 's/\.py//')` ;; *-x) - PAT="^(`echo $@ | sed 's/\.py//' | sed 's/ /|/'`)$" + PAT="^(`echo $@ | sed 's/\.py//g' | sed 's/ /|/g'`)$" TESTS=`(cd Lib/test; ls test_*.py | sed 's/\.py//' | egrep -v "$PAT")` ;; *)