From c12801a5b6e621003b58c9b414729698fb48f1a9 Mon Sep 17 00:00:00 2001 From: degomme Date: Thu, 21 Apr 2016 11:24:57 +0200 Subject: [PATCH] Don't crash when we deliberately feed this script with new arguments. --- teshsuite/smpi/mpich3-test/runtests | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/teshsuite/smpi/mpich3-test/runtests b/teshsuite/smpi/mpich3-test/runtests index 6c9f46b837..9a5149a725 100755 --- a/teshsuite/smpi/mpich3-test/runtests +++ b/teshsuite/smpi/mpich3-test/runtests @@ -163,9 +163,6 @@ foreach $_ (@ARGV) { elsif (/--?batchdir=(.*)/) { $batrundir = $1; } elsif (/--?timeoutarg=(.*)/) { $timeoutArgPattern = $1; } elsif (/--?execarg=(.*)/) { $execarg = "$execarg $1"; } - elsif (/--?setenv/) { } - elsif (/--?enable-coverage/) { } - elsif (/--?timeout/) { } elsif (/VALGRIND_COMMAND=(.*)/) { $valgrind = $1; } elsif (/VALGRIND_OPTIONS=(.*)/) { @@ -215,14 +212,6 @@ foreach $_ (@ARGV) { # we do not know at this point how many tests will be run, so do # not print a test plan line like "1..450" until the very end } - else { - print STDERR "Unrecognized argument $_\n"; - print STDERR "runtests [-tests=testfile] [-np=nprocesses] \ - [-maxnp=max-nprocesses] [-srcdir=location-of-tests] \ - [-xmlfile=filename ] [-noxmlclose] \ - [-verbose] [-showprogress] [-debug] [-batch]\n"; - exit(1); - } } # Perform any post argument processing -- 2.20.1