* lisp/emacs-lisp/ert.el (ert-test--erts-test): Fix 'Skip' behavior in erts files, so only the test case where it is specified is skipped. The following reproducer might be useful to test the patch. erts-repro-tests.el: (require 'ert) (require 'ert-x) (ert-deftest erts-skip-test () "Skip erts test case." (ert-test-erts-file (ert-resource-file "erts-skip.erts") (lambda () ()))) resources/erts-skip.erts: Name: first Skip: t =-= XXX =-= XXX =-=-= Name: second =-= XXX =-= YYY =-=-= Name: third =-= XXX =-= YYY =-=-= Before the fix, the test case named "second" is also skipped. Although, third is run. Also, if the last test case of an erts file is skipped, the following error is reported: F erts-skip-test Skip erts test case. (search-failed "^=-=-=\n") This my first contribution to GNU Emacs and I have not signed the Copyright Assignment paperwork. However, given that it is a one-line patch, I think it is fine to add: Copyright-paperwork-exempt: yes Regards, Roi