mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-30 10:41:23 -07:00
Allow parameter defaults in test header
Copied from Perforce Change: 20199 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
201af60c11
commit
eaba77bee5
1 changed files with 5 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
#!/usr/local/bin/perl
|
||||
# $HopeName: MMQA_harness!script:headread(trunk.9) $
|
||||
# $HopeName: MMQA_harness!script:headread(trunk.10) $
|
||||
#
|
||||
# subroutines to assist in
|
||||
# 1. reading test headers
|
||||
|
|
@ -170,14 +170,17 @@ sub verdict {
|
|||
#
|
||||
|
||||
sub get_parmdefs {
|
||||
local ($var, $missing);
|
||||
local ($var, $missing, $val);
|
||||
$missing = "";
|
||||
%parmdefs = ();
|
||||
if (exists $test_header{"parameters"}) {
|
||||
foreach (split /\s+/, $test_header{"parameters"}) {
|
||||
($_, $val) = split /=/, $_;
|
||||
$var = getparameter($_);
|
||||
if (defined $var) {
|
||||
$parmdefs{$_} = $var;
|
||||
} elsif ($val) {
|
||||
$parmdefs{$_} = $val;
|
||||
} else {
|
||||
$missing .= "\n ".$_.",";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue