Skip to content

Commit 5399796

Browse files
committed
lf_gui_cmd.pl: adds switch for setting default report verbosity
Signed-off-by: Jed Reynolds <[email protected]>
1 parent 3f04776 commit 5399796

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lf_gui_cmd.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
my $tconfig = ""; # test config
3333
my $rpt_dest = "";
3434
my $show_help = 0;
35+
my $verbosity = -1;
3536
my @modifiers_key = ();
3637
my @modifiers_val = ();
3738

@@ -50,6 +51,7 @@
5051
[--tconfig {test configuration name, use defaults if not specified} ]
5152
[--rpt_dest {Copy report to destination once it is complete} ]
5253
[--cmd { command to send to the GUI } ]
54+
[--verbosity { report verbosity 1 - 11 } ]
5355
[--modifier "
5456
5557
Example:
@@ -75,6 +77,7 @@
7577
'rpt_dest=s' => \$rpt_dest,
7678
'port=s' => \$port,
7779
'cmd|c=s' => \$cmd,
80+
'verbosity|v=i' => \$verbosity,
7881
) || die("$usage");
7982

8083
if ($show_help) {
@@ -141,6 +144,9 @@
141144
if ($tconfig ne "") {
142145
print doCmd("cv load '$tname' '$tconfig'");
143146
}
147+
if ($verbosity >= 1) {
148+
print doCmd("cv set '$tname' 'VERBOSITY' '$verbosity'");
149+
}
144150
print doCmd("cv click '$tname' 'Auto Save Report'");
145151

146152
for ($i = 0; $i<@modifiers_key; $i++) {

0 commit comments

Comments
 (0)