-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
org-super-agenda-test--:auto-map test failure #183
Comments
This happens on Emacs >= 27.1 because it hashes lambdas differently than Emacs <= 26.3, and since the test's argument is a lambda, that is what the test result is keyed on, so the test fails to find the test result in the test data. This can't easily be fixed without either dropping support for Emacs <= 26.3 (which shouldn't be done for, probably, years to come), or making a likely convoluted change to the test suite to handle Emacs versions differently. I might try the latter at some point. In the meantime, this test failure is harmless and a false negative. |
I disabled the test and pushed the package update in Guix with this commit: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d6dd120be6a527494e9204fa227842db466171e6. Thanks for the prompt feedback! |
Thanks. A couple of comments: + (modify-phases %standard-phases
+ (add-after 'unpack 'prepare-for-tests.el
+ (lambda _
+ (make-file-writable "test/test.el")
+ (emacs-substitute-variables "test/test.el"
+ ("org-super-agenda-test-results-file"
+ (string-append (getcwd) "/test/results.el"))) What is the purpose of modifying that variable? I guess it's to correct the CWD while running the tests, however that seems like an awkward way of doing it, and it may indicate doing something wrong. Specifically, I see earlier in the diff: + #:test-command '("test/run" "--debug") That's not the way I'm running the tests now. Please see the Also: + ;; The following test fail (see:
+ ;; https://github.com/alphapapa/org-super-agenda/issues/183). Would you please note in the comment that the test only fails on Emacs >= 27.1? Thanks for your work on this. |
Without adapting the
I'm guessing that's due to the default value being resolved based on the location of the '.git' file in the project, which doesn't exist in the Guix checkout of the project (for reasons mentioned alphapapa/org-ql#166 (comment)).
I'd like to, but I can't, because the makem.sh depends on the git metadata being present.
There's currently only one version of Emacs package in Guix, and that's 27.1. So adding this information wouldn't bring much in this context.
My pleasure! Thanks for your helpful replies. |
Hello!
Attempting to update this package on Guix, I stumbled on the following test failure:
It may be due to using dependencies newer than those listed in the Package-Requires header:
Thank you!
The text was updated successfully, but these errors were encountered: