diff options
author | Jacob Bachmeyer <jcb62281+dev@gmail.com> | 2020-06-17 18:08:57 -0500 |
---|---|---|
committer | Jacob Bachmeyer <jcb62281+dev@gmail.com> | 2020-06-17 18:08:57 -0500 |
commit | c5b21f1f1cfaabf1431010c314aadcc0b7b708f0 (patch) | |
tree | 8318189e0992ad9a8136458b4dae5aa080fb0ee1 /runtest.exp | |
parent | 5fafcd43b2d22b2227e62f7278584418c6449824 (diff) | |
download | dejagnu-c5b21f1f1cfaabf1431010c314aadcc0b7b708f0.zip dejagnu-c5b21f1f1cfaabf1431010c314aadcc0b7b708f0.tar.gz dejagnu-c5b21f1f1cfaabf1431010c314aadcc0b7b708f0.tar.bz2 |
Allow testing to continue after an undefined command is called
Diffstat (limited to 'runtest.exp')
-rw-r--r-- | runtest.exp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/runtest.exp b/runtest.exp index ba49e73..028ad5b 100644 --- a/runtest.exp +++ b/runtest.exp @@ -97,6 +97,13 @@ set global_init_file site.exp ;# global init file name set testsuitedir "testsuite" ;# top-level testsuite source directory set testbuilddir "testsuite" ;# top-level testsuite object directory +# +# These are used for internal command-line flags. +# +namespace eval ::dejagnu::opt { + variable keep_going 0 ;# continue after a fatal error in testcase? +} + # Various ccache versions provide incorrect debug info such as ignoring # different current directory, breaking GDB testsuite. set env(CCACHE_DISABLE) 1 @@ -372,6 +379,7 @@ proc usage { } { send_user "\t--host \[triplet\]\tThe canonical triplet of the host machine\n" send_user "\t--host_board \[name\]\tThe host board to use\n" send_user "\t--ignore \[name(s)\]\tThe names of specific tests to ignore\n" + send_user "\t--keep_going\t\tContinue testing even if a script aborts\n" send_user "\t--local_init \[name\]\tThe file to load for local configuration\n" send_user "\t--log_dialog\t\t\Emit Expect output on stdout\n" send_user "\t--mail \[name(s)\]\tWhom to mail the results to\n" @@ -1201,6 +1209,10 @@ for { set i 0 } { $i < $argc } { incr i } { continue } + "--k*" { # (--keep_going) reduce fatal errors + set ::dejagnu::opt::keep_going 1 + } + "--m*" { # (--mail) mail the output set mailing_list $optarg set mail_logs 1 |