tests: Allow cmdline args to override test args.

This commit is contained in:
John Coiner 2018-07-05 18:52:25 -04:00 committed by Wilson Snyder
parent 129610821f
commit 736bf75a50

View File

@ -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}:""),