Tests: Skip unstability

This commit is contained in:
Wilson Snyder 2021-09-04 13:48:16 -04:00
parent 72f198d79e
commit 8519dc1383

View File

@ -10,13 +10,21 @@ if (!$::Driver) { use FindBin; exec("$FindBin::Bin/bootstrap.pl", @ARGV, $0); di
scenarios(dist => 1); scenarios(dist => 1);
run(cmd => ["cd $Self->{obj_dir} && $ENV{VERILATOR_ROOT}/bin/verilator_gantt $Self->{t_dir}/t_gantt_io.dat > gantt.log"], if (1) {
check_finished => 0); skip("Skipping due to unstability with cpuinfo");
} else {
check();
}
files_identical("$Self->{obj_dir}/gantt.log", $Self->{golden_filename}); sub check {
run(cmd => ["cd $Self->{obj_dir} && $ENV{VERILATOR_ROOT}/bin/verilator_gantt $Self->{t_dir}/t_gantt_io.dat > gantt.log"],
check_finished => 0);
vcd_identical("$Self->{obj_dir}/profile_threads.vcd", "$Self->{t_dir}/t_gantt_io_vcd.out"); files_identical("$Self->{obj_dir}/gantt.log", $Self->{golden_filename});
ok(1); vcd_identical("$Self->{obj_dir}/profile_threads.vcd", "$Self->{t_dir}/t_gantt_io_vcd.out");
ok(1);
}
1; 1;