Skip to content

Commit

Permalink
Use existing link style for multi tests
Browse files Browse the repository at this point in the history
And no meta symlinks
  • Loading branch information
ingydotnet committed Jan 17, 2022
1 parent 8cf790b commit 0cf2f78
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions bin/suite-to-data.pl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
);

die "'data' directory not empty" if glob('data/*');
mkdir my $meta_dir = "data/meta";
# mkdir my $meta_dir = "data/meta";
mkdir my $name_dir = "data/name";
mkdir my $tags_dir = "data/tags";

Expand Down Expand Up @@ -70,14 +70,15 @@ sub make {
}

if ($num == 0) {
symlink $data->{name}, "$meta_dir/$id.label";
# symlink $data->{name}, "$meta_dir/$id.label";
symlink "../$id", "$name_dir/$slug";
}

for my $tag (split /\s+/, $data->{tags}) {
mkdir "$tags_dir/$tag";
if ($multi) {
symlink "../../$id/$num", "$tags_dir/$tag/$id-$num";
mkdir "$tags_dir/$tag/$id";
symlink "../../../$id/$num", "$tags_dir/$tag/$id/$num";
}
else {
symlink "../../$id", "$tags_dir/$tag/$id";
Expand Down

0 comments on commit 0cf2f78

Please sign in to comment.