Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a0128b0

Browse files
committedAug 10, 2024·
texdocs_spec.rb: set to real TEXMFDIST
1 parent 299bff0 commit a0128b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎spec/search/texdocs_spec.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@
3030
context "with standard testing setup" do
3131
before(:each) { run_texdoc "-dtexdocs", "listings" }
3232

33-
let(:texmf_dist_regex) {
34-
Regexp.escape(normalize_path("/usr/local/texlive/YEAR/texmf-dist")).sub("YEAR", '\d\d\d\d')
35-
}
33+
let(:texmf_dist_regex) { Regexp.escape(normalize_path(`kpsewhich -var-value TEXMFDIST`.chomp)) }
3634
let(:texmf_home_regex) { Regexp.escape(normalize_path(texmf_home)) }
3735

3836
let(:texdocs_n_dist) {

0 commit comments

Comments
 (0)
Please sign in to comment.