From 736bf75a50df8ef89639dd1f0d6029dab3376644 Mon Sep 17 00:00:00 2001 From: John Coiner Date: Thu, 5 Jul 2018 18:52:25 -0400 Subject: [PATCH] tests: Allow cmdline args to override test args. --- test_regress/driver.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test_regress/driver.pl b/test_regress/driver.pl index b9cabbf4e..2c05e2951 100755 --- a/test_regress/driver.pl +++ b/test_regress/driver.pl @@ -591,7 +591,6 @@ sub compile_vlt_flags { my @verilator_flags = @{$param{verilator_flags}}; unshift @verilator_flags, "--gdb" if $opt_gdb; unshift @verilator_flags, "--gdbbt" if $opt_gdbbt; - unshift @verilator_flags, @Opt_Driver_Verilator_Flags; unshift @verilator_flags, "--x-assign unique"; # More likely to be buggy unshift @verilator_flags, "--trace" if $opt_trace; if (defined $opt_optimize) { @@ -615,6 +614,9 @@ sub compile_vlt_flags { @{$param{verilator_flags3}}, @{$param{v_flags}}, @{$param{v_flags2}}, + # Flags from driver cmdline override default flags and + # flags from the test itself + @Opt_Driver_Verilator_Flags, $param{top_filename}, @{$param{v_other_filenames}}, ($param{stdout_filename}?"> ".$param{stdout_filename}:""),