test: make output deterministic

This commit is contained in:
Geza Lore 2023-10-28 10:36:21 +01:00
parent 2cba167634
commit a5951babfc
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ if ($ENV{VERILATOR_TEST_NO_ATTRIBUTES}) {
sub gen_compile_commands_json {
my $json = JSON::PP->new->utf8->pretty;
$json->canonical(); # Sort hash keys on ouptut
my $root_dir = abs_path("..");
my $srcs_dir = abs_path("./t/t_dist_attributes");