Skip to content

Commit

Permalink
app-emacs/compat: Don't die when the installed Emacs doesn't support …
Browse files Browse the repository at this point in the history
…tests

There's no perfect solution here, but we don't want to override the
user's choice of Emacs' USE flags just for running tests.

Signed-off-by: Ulrich Müller <[email protected]>
  • Loading branch information
ulm committed Jun 21, 2022
1 parent 9bf98c4 commit a4044d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app-emacs/compat/compat-28.1.1.3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ src_test() {
done <<-EOF
Your current Emacs version does not support native JSON parsing,
which is required for running tests of ${CATEGORY}/${PN}.
Use "eselect emacs" to select an Emacs version with such feature.
Emerge >=app-editors/emacs-27 with USE="json" and use "eselect emacs"
to select that version.
EOF
die "Unable to run tests, missing \">=app-editors/emacs-27.2[json]\"."
else
emake test
fi
Expand Down

0 comments on commit a4044d1

Please sign in to comment.